<web-view src="{{src}}"></web-view>
data: {
src: ""
},
//查看跳转外链条件,网址+ id
//option 接收到参数id
//然后拼接到src上
//接收参数id
onLoad(option) {
console.log('99', option);
this.setData({
src: 'https://m.xxx.com/' + option.src
})
},
//跳转传递参数id
go(e){
const rid = e.target.dataset.rid
wx.navigateTo({
url:'/pages/go/go?src='+ rid
})
},
微信小程序跳转外链操作
最新推荐文章于 2025-07-07 08:23:52 发布