let connect = require("connect");
let serveStatic = require("serve-static");
 
let path = require('path');

let app = connect();
app.use(serveStatic(path.join(__dirname, "../static")),{
    maxAge: '30d'
});
 
app.listen(5000); //监听5000端口

相关文章:

  • 2021-12-30
  • 2022-01-17
  • 2022-02-06
  • 2022-12-23
  • 2021-11-26
  • 2021-06-26
猜你喜欢
  • 2021-06-25
  • 2021-12-10
  • 2022-12-23
  • 2021-05-25
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案