表达真实路径 将网址解析为根文件。 安装 npm install express-truepath 文献资料 var path = require ( "path" ) ; var truePath = require ( "express-truepath" ) ; var rootPath = path . resolve ( "." , "public" ) ; var config = { // this is default value index : [ "index.html" , "default.html" ] , follow_symlink : true