【发布时间】:2016-03-06 15:40:48
【问题描述】:
需要从 index.html 文件中访问 node_module 目录文件,该文件位于子目录中,并且 node_module 目录与父目录位于同一位置。这里我使用 angularjs,服务器文件的静态文件夹是公共目录。
app.use(express.static(__dirname + '/public'));
截图中提供了目录结构enter image description here
【问题讨论】:
标签: angularjs node.js express node-modules