【小程序】传参数

1.通过链接

data-ppid="{{pro.pid}}"

//获取

var pid1=event.currentTarget.dataset.ppid;

wx.navigateTo({

    url: '/pages/pro/pro?pid='+ pid1,

});

猜你喜欢

转载自blog.csdn.net/qq_33338352/article/details/105192393
今日推荐