wx.switchTab({ url: '../index/index', success: function (e) { var page = getCurrentPages().pop(); if (page == undefined || page == null) return; page.onLoad(); } })
switchTab成功跳轉后調用success,此時可以拿到跳轉后頁面的page對象,從而調用頁面onLoad方法重載頁面;微信后期應該會加相應的參數來決定是否刷新跳轉