1–》快速上手路由const express = require(“express”); const app = express(); app.get(‘/’, (req, res) => { {代码…} }) app.listen(3000, () => { {代码…} }) 2–》静态文件托管const path = require(“path”); app.use(express.static(path.join(__dirname, ‘public’))) 3–》CORS跨域请求1:npm i cors a…