iDialog 打开子页面如何给父页面传值

提问 未结 1 6222
悬赏:20飞吻
var iframe = '<iframe src="' + url + '" frameborder="0" style="border:0;width:100%;height:100%;"></iframe>'
var $parentDialog = parent.$("<div style='overflow: hidden'></div>")
var dialogOpts = {
id: 'map_point_dialog',
title: '地图定位',
width: 1024,
height: 600,
closed: false,
content: iframe,
buttons: [{
text: 'Save',
handler: function () {

}
}, {
text: 'Close',
handler: function () {
//父页面.input.value = ''
}
}]
}
$parentDialog.iDialog(dialogOpts);
回帖
回帖须知