摘要:
js判断undefined类型今天使用showModalDialog打开页面,返回值时。当打开的页面点击关闭按钮或直接点浏览器上的关闭则返回值是undefined 所以自作聪明判断 var reValue=window.showModalDialog("","",""); if (reValue== undefined){ alert("undefined"); } 发现判断不出来,最后查了下资料要用typeof方法:if (typeof(reValue) == "undefined") { a 阅读全文
posted @ 2011-09-06 14:55
Dufe王彬
阅读(242)
评论(0)
推荐(0)
浙公网安备 33010602011771号