多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
## url.parse()可以解析url ~~~ <form action="http://localhost:8080" method="get"> <p><input type="text" placeholder="请输入用户名" name="user"></p> <p><input type="password" placeholder="请输入密码" name="pwd"></p> <input type="submit"> </form> ~~~ ~~~ const http = require('http'); const url = require('url'); const server = http.createServer((req,res)=>{ var query = url.parse(req.url,true).query; console.log(query) res.end("hello world") }) server.listen(8080) ~~~