iframe中的jquery ui modal dialog 覆盖父窗口
function openDialog(){ var $doc; if(window.location!=window.parent.location){// 页面在iframe中 $doc=window.parent.jQuery.noConflict(); }else{// 页面单独打开 $doc=jQuery.noConflict(); } $doc("body").append('<div id=dialog></div>'); var dialog=$doc("#dialog"); dialog.html("欢迎你"); dialog.dialog( {modal: true}); }
相关推荐
apowerfulman 2020-03-03
hustlei 2011-03-03
Mexican 2011-08-31
larrywangsun 2011-08-09
TTHHVV 2011-09-28
87384559 2014-11-11
xuewenke 2015-11-04
火星的你 2015-10-25
王磊的程序员之路 2019-06-19
十一郎的IT 2013-10-29
攻城师 2019-06-28
89453862 2016-05-13
SinhaengHhjian 2015-11-04
sunnylinner 2014-11-11