判断一个对象中是否有指定属性 1 hasOwnProperty var a = {b:1} a.hasOwnProperty('b') true a.hasOwnProperty('c') false var a 你的当前访问异常,请进行认证后继续阅读剩余内容。 提交