var bodyParser = require(‘body-parser‘);
var urlencodedParser = bodyParser.urlencoded({
extended: false
});
路由中使用
router.post(‘/‘, urlencodedParser, function (req, res) {
req.body.labelname
}
原文:https://www.cnblogs.com/xfbx/p/9343930.html