日期:2014-05-17  浏览次数:20424 次

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")??