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

wx.switchTab({
    url: '/pages/allGoods/allGoods',
    success:function(e){
        var page = getCurrentPages().pop();
        if(page == undefined || page == null){
            return;
        }else{
            page.onLoad();
        }
    }
})
发布了26 篇原创文章 · 获赞 1 · 访问量 2230

猜你喜欢

转载自blog.csdn.net/qq_38396070/article/details/100532359