AdonisJs:Route.on() 对比 Route.get()
AdonisJs: Route.on() vs Route.get()
处理AdonisJs框架,我想知道Route.on()
和Route.get()
有什么区别
在官方 routing 文档中找到答案:
For static pages, you don’t necessarily need logic and directly want
to render a view. This can be achieved by using Router.on().render()
.
处理AdonisJs框架,我想知道Route.on()
和Route.get()
有什么区别
在官方 routing 文档中找到答案:
For static pages, you don’t necessarily need logic and directly want to render a view. This can be achieved by using
Router.on().render()
.