node的router路由。

使用router可以实现一个小型的express。

router继承了大部分的app = express()的方法。

使用router可以工程化管理项目。router使用以后app只能在最开始去存在。之后的页面内不能使用app。

router是express自带的方法。

猜你喜欢

转载自www.cnblogs.com/l8l8/p/9123879.html
今日推荐