出现错误 500 SyntaxError: Missing catch or finally after try
问题出处: res.render(‘test’,{title:‘test’}) 程序到这一步就会出现rt错误 环境: express3.0.0rc3 ejs:0.8.1 node: 0.8.2 错误代码:
at Object.Function (unknown source)
at exports.compile (F:\myprogram\zsblog\node_modules\ejs\lib\ejs.js:226:12)
at Object.exports.render (F:\myprogram\zsblog\node_modules\ejs\lib\ejs.js:262:10)
at View.exports.renderFile [as engine] (F:\myprogram\zsblog\node_modules\ejs\lib\ejs.js:292:22)
at View.render (F:\myprogram\zsblog\node_modules\express\lib\view.js:75:8)
at Function.app.render (F:\myprogram\zsblog\node_modules\express\lib\application.js:504:10)
at ServerResponse.res.render [as partial] (F:\myprogram\zsblog\node_modules\express\lib\response.js:677:7)
at module.exports.res.render (F:\myprogram\zsblog\node_modules\express-partials\index.js:63:11)
at View.exports.renderFile [as engine] (F:\myprogram\zsblog\node_modules\ejs\lib\ejs.js:292:5)
at View.render (F:\myprogram\zsblog\node_modules\express\lib\view.js:75:8)
问题出在哪里?
2 回复
提醒我了 新建了个layout.ejs 测试下 ok了 谢谢