hasOwnProperty

1、用法

Obj.hasOwnProperty(key)

检查key是否是Obj的基本属性

Obj:对象

key:键名

你可能感兴趣的:(hasOwnProperty)