Skip to content

Commit 2eaedd0

Browse files
20220830
1 parent 8cadb6d commit 2eaedd0

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Test/a.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function pow()
2+
{
3+
4+
5+
}

Test/server.js

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
var http = require('http');
2+
3+
http.createServer(function (request, response) {
4+
5+
// 发送 HTTP 头部
6+
// HTTP 状态值: 200 : OK
7+
// 内容类型: text/plain
8+
response.writeHead(200, {'Content-Type': 'text/plain'});
9+
10+
// 发送响应数据 "Hello World"
11+
response.end('Hello World\n');
12+
}).listen(8888);
13+
14+
// 终端打印如下信息
15+
console.log('Server running at http://127.0.0.1:8888/');

0 commit comments

Comments
 (0)