84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
express框架构架的nodejs企业网站,请问如何控制路由?
.get(function(req, res) {});.put(function(req, res) {});.post(function(req, res) {});.delete(function(req, res) {});
有没有方法总结起来的?有什么好的模块推荐吗?管理我的路由?如果没有,可否提供一个比较合适的思路? 谢谢了
人生最曼妙的风景,竟是内心的淡定与从容!
可以把所有的回调函数,写到router-action目录下,然后通过routerAction.functionName调用
var express = require('express'), router = express.Router(), routerAction = require('../router-action'); router.get('/', routerAction.index);
可以把所有的回调函数,写到router-action目录下,然后通过routerAction.functionName调用