後來ES5 新增的 Object.keys() 解決了非own property 的問題,但還是要手動透過property name 來存 ... forEach(key => { console.log(key); }); // a // b // c.
確定! 回上一頁