不多说什么,直接上代码 var express = require('express'); var fs = require('fs') var path= require('path'); var cors = require('cors'); var app = express(); app.use(cors()); var options = { dotfiles: 'ignore', etag: false, extensions: ['htm', 'html'], index: fal…