1 hasOwnProperty var a = {b:1}a.hasOwnProperty('b') true a.hasOwnProperty('c') false 2 in 转载于:https://www.cnblogs.com/guozongzhang/p/10823806.html