ionic5跳转页面并传参的两种方式
方式一
1.路由中添加模型
首先在app-routing.module.t中找到即将跳转的页面的path,在path后添加参数名格式为 /:参数名1/:参数名2 …
{ path: 'test/:id/:name', loadChildren: './test/test.module#testPageModule' }
2.跳转页面并携带参数
2.1 js中跳转
import { Route...
原创
2019-09-27 13:14:17 ·
3038 阅读 ·
2 评论