npm run test和npm run start 必须在index.js中更改服务器 res.header("Access-Control-Allow-Origin", "*"); res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept, access-control-allow-methods"); res.header("Access-Control-Allow-Methods", "GET, POST, OPTIONS, PUT, DELETE"); nex