首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

Microsoft JScript 运行时异常: “Popup”未定义这如何避免

2013-05-02 
Microsoft JScript 运行时错误: “Popup”未定义这如何处理? function Hide() {if (Popup ! null) {Popup.s

Microsoft JScript 运行时错误: “Popup”未定义这如何处理?


 function Hide() {
        if (Popup != null) {
            Popup.style.display = "none";
        }






Microsoft JScript 运行时错误: “Popup”未定义,如何定义Popup呢?如何让IE不报错,

1:就是没有定义如何让IE不报错?
2:如何定义Popup呢?
[解决办法]



 function Hide() {
        if(typeof(Popup)!="undefined") {
            Popup.style.display = "none";
        }





[解决办法]
var Popup=document.getElementById("Popup")??

热点排行