检查对象属性的首选方法是`null`或`undefined`
这个问题在这里已经有了答案:
我想你会使用obj.hasOwnProperty(道具)
https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty
链接地址: http://www.djcxy.com/p/22649.html上一篇: Preferred way to check object property is `null` or `undefined`
下一篇: How to have a statement identify an undefined variable?