js中使用switch跳转index页面,index页面的js根本没有运行
登录页面的js
//跳转至首页
wx.switchTab({
url: “…/index/index”
});
console.log(1); 都打印不出来的
写在onLoad,onShow中都没用
官方告知下这是什么原因
登录页面的js
//跳转至首页
wx.switchTab({
url: “…/index/index”
});
console.log(1); 都打印不出来的
写在onLoad,onShow中都没用
官方告知下这是什么原因