express中不能直接处理json数据,不能使用post、put等功能 可以添加以下代码: //处理post请求,解析json数据 const bodyParser = require('body-parser') app.use(bodyParser.json()); app.use(bodyParser.urlencoded({extended: false}));