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

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

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

router是express自带的方法。

相关文章:

  • 2021-05-20
  • 2022-02-06
  • 2021-09-21
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-08
  • 2021-11-02
  • 2021-08-22
  • 2019-11-13
  • 2019-02-28
  • 2021-11-28
相关资源
相似解决方案