【发布时间】:2015-01-19 23:22:38
【问题描述】:
我需要在 Jade 文件中使用“fs”模块。没有其他 JS 文件。
当我尝试时:
- var js = require('fs')
- var downloadfiles = readdirSync("download")
for f in downloadfiles
url
loc= D + "/download" + f
lastmod= buildDate
changefreq daily
priority 1.0
我收到错误“未定义不是函数”
【问题讨论】: