微信公开课
微信公开课小程序热议问题「onShow有致命问题」
摘要:如何解决onShow有致命问题
展开:1index页tabbar页的跳转跳转到style页非tabbar页代码setStyle:function(event){wx.navigateTo({url:../../pages/style/stylelist/style})},2.从style页非tabbar页跳回index页(tabbar页)代码setStyle:function(event){wx.switchTab({url:../../../pages/index/index})},3.index页tabbar页的onShow方法onShow:function(){console.log(onShow);},第1次indexstyleindex执行onShow方法第2次indexstyleindex不执行onShow方法后面一直不执行这个onShow方法了
更多有关onShow有致命问题的小程序开发问题勤请扫码关注微信公开课小程序参与讨论!了解更多