首页 > 其他 > 详细

mui页面传值

时间:2019-09-29 10:30:26      阅读:103      评论:0      收藏:0      [点我收藏+]

父页面:

var confirm_id = this.getAttribute("data-id");

var baseUrl = ‘rectification_item.html‘;

var url = mui.os.plus ? baseUrl : baseUrl + ‘?confirm_id=‘ + confirm_id;

mui.openWindow({
url: url,
show: {
autoShow: false
},
extras: {
confirm_id: confirm_id
}
});

子页面:

if (mui.os.plus) {
mui.plusReady(function() {
var self = plus.webview.currentWebview();
confirm_id = self.confirm_id;
})
}

mui页面传值

原文:https://www.cnblogs.com/yyjspace/p/11606041.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!