以下两个语句是否产生相同的输出?有没有理由偏向另一种方式?
if (key in object) if (object.hasOwnProperty(key))
javascript
javascript ×1