wx.switchTab 跳转刷新?

发布于 6 年前作者 xiacui5964 次浏览最后编辑 6 年前来自 issues

代码片段

wx.switchTab({

url: '../index/index',
success: function (e) {
var page = getCurrentPages().pop();
if (page == undefined || page == nullreturn;
page.onLoad();
}

})

相关问题

开发者工具刷会刷新跳转后的页面  真机调试直接刷新了当前页再跳转

1 回复
itao
itao1 楼4 年前

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html