Questo sembra abbastanza bizzarro.non ha il metodo hasOwnProperty (vale a dire non è definito) - IE8
Ecco il mio esperimento nella console IE8:
typeof obj1 // "object"
obj1.hasOwnProperty // {...}
typeof obj2 // "object"
obj2.hasOwnProperty // undefined
Tutte le idee su che cosa potrebbe causare questo?
è obj2 un oggetto host? Sei in modalità IE7/IE8/Quirks? – Raynos
riguardo alla differenza tra oggetti nativi e oggetti host? ': Http://stackoverflow.com/questions/7614317/what-is-the-difference-between-native-objects-and-host-objects –
http: // correlato stackoverflow.com/questions/135448/how-do-i-check-to-see-if-an-object-has-a-property-in-javascript –