2017-08-12 71 views

回答

2

嗯,你錯過了引號:

x.propertyIsEnumerable('x') 

請看下圖:

var x = Object.create(Object.prototype, {x:{value:3, writable:true, enumerable:true}}); 
 

 
console.log(x.propertyIsEnumerable('x'));

+1

太棒了!謝謝! –

相關問題