1.可以用 in操作符 和 对象的 hasOwnProperty 操作符
举例
"prop" in Object Object.hasOwnProperty("prop")
2.判断undefined
var tmp = undefined; if (typeof(tmp) == "undefined") { alert("undefined"); }
更新列表:
*
参考文章: