2008年12月17日

JS中判断对象是否为空

摘要: if (typeOf(x) == "undefined"){ alert("undefined"); } else if (typeOf(x) == "null") { alert("null"); } 或者简单那的用法是 if(!variable) {} 阅读全文

posted @ 2008-12-17 13:57 GavinGan 阅读(5376) 评论(1) 推荐(0) 编辑

导航