()--可以写多次,也可以不写
res.end()--必须写,作用是结束本次响应,如果不写,前端会一直等待后台响应
* */
let server=http.createServer(function...(req,res) {
console.log(req.url,req.method);
res.end("响应结束");
}).listen(7890);
//监听端口号
// server.listen...function getData(data) {
console.log(data);
}
express.js...请求都支持body-parser模块,那么所有的req对象就会多一个body属性,里面存储了post请求过来的数据 如何让所有的路由都支持body-parser模块?...,PUT,DELETE,OPTIONS');
next();
});
app.get("/",function (req,res) {
res.end("响应结束");
});
app.get