获取get参数 通过req.query 获取post参数 通过req.body,但需要使用bodyParser中间件,否则req.body为空。 app.use(bodyParser.urlencoded({extended: true}))