微信小程序 页面跳转如何通过url传递参数


var fb_id = 132

在跳转地址后

wx.naviga 在跳转地址后teTo({
url: `../free/sellers/sellers?fb_id=${fb_id }`,
})

然后在新页面通过js获取数据

onLoad: function (options) {
console.log(options.fb_id)
var fb_id = options.fb_id;
}

猜你喜欢

转载自blog.csdn.net/weixin_42369486/article/details/80648298