jquery写代码,怎么弹出框老报错,成 Dialog is not defined topWin.Dialog._dialogArray为空或不是对象 30
<scripttype="text/javascript">vardiag=newDialog();diag.CancelEvent=function(){diag.cl...
<script type="text/javascript">
var diag = new Dialog();
diag.CancelEvent=function(){
diag.close();
window.location.reload();
};
$(document).ready(function(){
$("a").click(function(){
//<a>标签不是脚本的情况下可以弹出框
if(!this.href.toString().match("javascript:*")){
alert("4");
diag.Title = this.innerHTML;
diag.URL = this.href;
diag.Width = 600;
diag.Height = 500;
diag.show();
//top.Dialog.open({URL:this.href,Title:this.innerHTML,Width:600,Height:500});
return false;
}
});
});
</script> 展开
var diag = new Dialog();
diag.CancelEvent=function(){
diag.close();
window.location.reload();
};
$(document).ready(function(){
$("a").click(function(){
//<a>标签不是脚本的情况下可以弹出框
if(!this.href.toString().match("javascript:*")){
alert("4");
diag.Title = this.innerHTML;
diag.URL = this.href;
diag.Width = 600;
diag.Height = 500;
diag.show();
//top.Dialog.open({URL:this.href,Title:this.innerHTML,Width:600,Height:500});
return false;
}
});
});
</script> 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询