想用wx.navigateToMiniProgram小程序跳转,这么写对吗?
Page({
data: {
},
onLoad: function (options) {
},
onTouch: function (event) {
wx.navigateToMiniProgram({
appId: ‘wx0aaa40325f028000’,
path: ‘pages/infor/inforlist’,
extarData: {
},
envVersion: ‘release’,
success(res) {
// 打开成功
}
})
console.log(event)
},
----------------------------------------------------------------
<button bindtap=“onTouch” >test</button>