大神止步关于wx.redirectTo传递参数
if(data.status == 1){
var ptype = e.currentTarget.dataset.type;
if(ptype == ‘buynow’){
wx.redirectTo({
url: ‘…/order/pay?attrId=’ +data.attrid ,
});
return;
例如这段代码我怎么加入多个变量传参
7 回复
if(data.status == 1){
var ptype = e.currentTarget.dataset.type;
if(ptype == 'buynow'){
wx.navigateTo({
url: '../order/pay?cartId='+data.cart_id+'&attrId=' +data.attrid ,
});
这样