解决微信小程序使用switchTab跳转后页面不刷新的问题

 


wx.switchTab({
url: '/pages/cart/index',
success:function () {
var page = getCurrentPages().pop();
if (page == undefined || page == null) return;
page.onLoad(); //重新刷新页面
}
})

 

posted @ 2019-04-23 15:15  Shimily  阅读(2360)  评论(1)    收藏  举报