1.relaunch
功能描述
关闭所有页面,打开到应用内的某个页面
wxml里做出指定按钮
加入bindtap
index.js:
wx.reLaunch({
url: 'test?id=1'
})
redirectTo
wx.redirectTo({
url: 'test?id=1'
})
wxml:
<navigator open-type="redirect" url="../list/index">临时重定向到a页面</navigator>
1.relaunch
关闭所有页面,打开到应用内的某个页面
wxml里做出指定按钮
加入bindtap
index.js:
wx.reLaunch({
url: 'test?id=1'
})
redirectTo
wx.redirectTo({
url: 'test?id=1'
})
wxml:
<navigator open-type="redirect" url="../list/index">临时重定向到a页面</navigator>