uniapp navigateBack()带参
let pages = getCurrentPages();let prevPage = pages[pages.length - 2]; //上一个页面var object={rqf: this.rqf,rqt: this.rqt}prevPage.$vm.otherFun(object);//重点$vmuni.navigateBack();otherFun:function(option){t
·
let pages = getCurrentPages();
let prevPage = pages[pages.length - 2]; //上一个页面
var object={
rqf: this.rqf,
rqt: this.rqt
}
prevPage.$vm.otherFun(object);//重点$vm
uni.navigateBack();
otherFun:function(option){
this.rqf = option.rqf;
this.rqt = option.rqt;
this.getinfo();
},
更多推荐
已为社区贡献1条内容
所有评论(0)