hasOwnProperty 是检测对象在排除原型链的情况下是否具有某个属性。 比如:. var obj = {x: 1}. obj.hasOwnProperty('x') 返回true. obj.
確定! 回上一頁