You've already forked Pandona-Engine
初始化提交
This commit is contained in:
15
fetch-page.js
Normal file
15
fetch-page.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import http from 'http';
|
||||
|
||||
http.get('http://localhost:3003/', (res) => {
|
||||
let data = '';
|
||||
|
||||
res.on('data', (chunk) => {
|
||||
data += chunk;
|
||||
});
|
||||
|
||||
res.on('end', () => {
|
||||
console.log(data.substring(0, 500));
|
||||
});
|
||||
}).on('error', (err) => {
|
||||
console.log('Error: ' + err.message);
|
||||
});
|
||||
Reference in New Issue
Block a user