(function ($, undefined) {
$.dialogIframe = function (options) {
var defaults = {
title: '',
src: '',
height: 600,
width: 800,
bnt:''//我想在这里收到一个 true 或是false
}; $.extend(defaults, options); $('<iframe id="externalSite">').attr({ "src": defaults.src, "frameborder": "0", "width": "100%" })
.dialog({
title: defaults.title,
autoOpen: true,
width: defaults.width,
height: defaults.height,
modal: true,
resizable: false,
autoResize: true,
overlay: {
opacity: 0.5,
background: "black"
},
//然后在这里判断上面的bnt 来确定是否显示如下按扭,就是如下的意思写法
//if(){
//.....
//.....
//....
//}
buttons:{
"Ok": function () {
$(this).dialog("close");
},
"Cancel": function () {
$(this).dialog("close");
}
}
}).height(defaults.height - 10).width(defaults.width - 20); }
} (jQuery));
$.dialogIframe = function (options) {
var defaults = {
title: '',
src: '',
height: 600,
width: 800,
bnt:''//我想在这里收到一个 true 或是false
}; $.extend(defaults, options); $('<iframe id="externalSite">').attr({ "src": defaults.src, "frameborder": "0", "width": "100%" })
.dialog({
title: defaults.title,
autoOpen: true,
width: defaults.width,
height: defaults.height,
modal: true,
resizable: false,
autoResize: true,
overlay: {
opacity: 0.5,
background: "black"
},
//然后在这里判断上面的bnt 来确定是否显示如下按扭,就是如下的意思写法
//if(){
//.....
//.....
//....
//}
buttons:{
"Ok": function () {
$(this).dialog("close");
},
"Cancel": function () {
$(this).dialog("close");
}
}
}).height(defaults.height - 10).width(defaults.width - 20); }
} (jQuery));
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货