node入门
1. 启动服务,并获取url上的参数
路径:http://127.0.0.1:3000/photo?name=yyy&age=12
const http = require('http');
const url = require('url');
var server = http.createServer((req, res) => {
if (req.url == '/f...
原创
2018-10-22 18:27:25 ·
313 阅读 ·
0 评论