在使用express框架的时候,会遇到设置静态文件目录,代码如下://将静态文件目录设置为:项目根目录+/publicapp.use(express.static(__dirname + '/public'));// ...
確定! 回上一頁