微信小程序返回键跳转到指定页面,需要通过在onUnload函数中跳转,
onUnload: function () {
wx.reLaunch({
url: '../admin/admin'
})
}
reLaunch 可以打开任意页面。onUnload函数为监听页面卸载的函数,把页面重定向到指定的页面;
微信小程序返回键跳转到指定页面,需要通过在onUnload函数中跳转,
onUnload: function () {
wx.reLaunch({
url: '../admin/admin'
})
}
reLaunch 可以打开任意页面。onUnload函数为监听页面卸载的函数,把页面重定向到指定的页面;