get方法 参数在req.query中获取
router.get('/', function(req, res, next) {
console.log("reqquery:",req.query);
});
post方法 参数在req.body中获取
router.post('/', function(req, res, next) {
console.log("reqbody:",req.body);
});
get方法 参数在req.query中获取
router.get('/', function(req, res, next) {
console.log("reqquery:",req.query);
});
post方法 参数在req.body中获取
router.post('/', function(req, res, next) {
console.log("reqbody:",req.body);
});