摘要:
//nodejs 处理post请求 // 异步 const http =require('http') const server=http.createServer((req,res)=>{ if(req.method=='POST'){ let postData='' req.on('data',chunk=>{ postData +=chunk.tostring() }) req.on('en 阅读全文
posted @ 2019-12-04 14:36
distant-遥远
阅读(584)
评论(0)
推荐(0)
摘要:
http querystring 要从查询字符串中提取参数,可以使用 require('querystring').parse 函数,或者可以将 true 作为第二个参数传递给 require('url').parse: 阅读全文
posted @ 2019-12-04 13:41
distant-遥远
阅读(159)
评论(0)
推荐(0)

浙公网安备 33010602011771号