标签:fan ack ber com getc ges out class pre
var pages = getCurrentPages(); //当前页面
var prevPage = pages[pages.length - 2]; //上一页面
prevPage.setData({
//直接给上一页面赋值
id:27,
})
wx.navigateBack({
//返回上一页面
delta:1,
})
var that = this;
var pages = getCurrentPages();
var currPage = pages[pages.length - 1];
console.log(that.data.id) //打印测试id是否传过来
if(that.data.id){
currPage.setData({
nullAds:true,
})
}
esle{
currPage.setData({
nullAds:false,
})
}
标签:fan ack ber com getc ges out class pre
原文地址:https://www.cnblogs.com/pycmsj/p/10207169.html