node.js开发指南中出现的问题 has no method 'router'解决办法

app.use(app.router);//保留原来的
//app.use(express.router(routes));//node.js开发指南上面的(注释掉)

在app.configure外加上
routes(app);

就可以了

posted on 2013-09-29 12:14  bandbandme  阅读(207)  评论(0编辑  收藏  举报