如果我这样做:
for (var i in obj) {
if (obj.hasOwnProperty(i)) console.log("Has property: " + i);
else console.log("Doesn't have property: " + i);
}
obj.hasOwnProperty(i)
会返回false
吗?如果会,什么情况下会返回?