NodeJs has no method 'router' 错误解决方法
来源:互联网 发布:广联达是什么软件 编辑:程序博客网 时间:2024/05/16 10:56
在学习NodeJs开发指南这个教材的时候
使用app.use(express.router(routes));来加载路由模块
但是这样会报 has no method 'router' 这个错误。
解决方法:
用 routes(app);
替代 app.use(express.router(routes));
即可
原因可能是 express 3.0之后就没有router这个方法了
- NodeJs has no method 'router' 错误解决方法
- nodejs has no method 'configure'
- 关于学习《 Express MongoDB 搭建多人博客》报has no method 'router'错误
- webview 错误 Object has no method clickOnAndroid
- node.js开发指南中出现的问题 has no method 'router'解决办法
- has no method 'ajax'
- addJavascriptInterface has no method
- 出现TypeError: Object #<Object> has no method 'createClient' 错误
- yum错误'module' object has no attribute 'iterparse'解决方法
- Ubuntu 常见错误--Package has no installation candidate解决方法
- sencha touch中出现JS错误Uncaught TypeError: Object [object Object] has no method 'getForm'
- Android js交互错误:Uncaught TypeError: Object [object Object] has no method 'xxx'
- 从has no method 'tmpl'谈起
- TypeError: Object #<Object> has no method 'createClient'
- JSONObject has no read method. SKIPPED
- Property 'XXXXXX' has no read method. SKIPPED
- Object [object Object] has no method 'tree'
- AttributeError: addinfourl instance has no __call__ method
- rails使用img
- 用Random获取不重复的随机数
- apk反编译过程问题的解决
- James改造
- 获取ajax返回的值供外层使用
- NodeJs has no method 'router' 错误解决方法
- 策略模式
- 见微知著 从Select语句看Oracle查询原理
- Duff's Device
- abap中方法file_open_dialog的使用
- What is the difference between WM_DESTROY and WM_NCDESTROY?
- ServletContext对象读取资源路径的三种方式
- [STL] __gnu_cxx::hash_map使用中的一些问题
- Android FragmentPagerAdapter数据刷新notifyDataSetChanged没效果研究