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