scott老师这个问题怎么解决啊!
来源:
pull01
2016-06-30
$ node --harmony app.js
C:\Users\Administrator\Desktop\movies\wechat\node_modules\ejs\lib\ejs.js:495
throw e;
^
SyntaxError: Unexpected token = while compiling ejs
at Function (native)
at Object.Template.compile (C:\Users\Administrator\Desktop\movies\wechat\node_modules\ejs\lib\ejs.js:485:12)
at Object.compile (C:\Users\Administrator\Desktop\movies\wechat\node_modules\ejs\lib\ejs.js:289:16)
at Object.<anonymous> (C:\Users\Administrator\Desktop\movies\wechat\wechat\tpl.js:53:21)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (C:\Users\Administrator\Desktop\movies\wechat\wechat\util.js:5:11)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
2回答
-
Scott
2016-06-30
tpl 的模板里面有写错吧,再把模板检查一遍,有没有标签不全,多余空格,少等号多等号之类的错误
00 -
pull01
提问者
2016-07-01
哎,多了一个空格的
00
相似问题