美文网首页ionic
ionic2之你不知道的页面跳转

ionic2之你不知道的页面跳转

作者: 武昌鱼艾特222 | 来源:发表于2018-04-23 09:38 被阅读9次

1.跳转时删除当前页面

this.navCtrl.push(需要跳转的页面);

this.navCtrl.removeView(this.viewCtrl, { animate: false });

2.返回多层页面

let index = this.navCtrl.indexOf(this.viewCtrl);

this.navCtrl.remove(index - 1, 你需要返回页面的数量);

相关文章

网友评论

    本文标题:ionic2之你不知道的页面跳转

    本文链接:https://www.haomeiwen.com/subject/dzrklftx.html