express获取post,get数据
express获取post,get数据Post获取数据使用方法Get获取数据二级目录三级目录
Post获取数据
var bodyParser = require('body-parser');//引用bodyParser模块
使用方法
app.post('/xxx',bodyParser.json(), function (req, res) {
console.log(req.body.content);
res.end()
})
Get获取数据
二级目录
三级目录
...
原创
2020-07-31 17:54:21 ·
360 阅读 ·
0 评论