後來在ES5 新增了 Object.keys() , 終於可以擺脫 for-in 陳述句了 ,終於可以讓JS 物件(間接) 使用Array method 了! Object.keys() 可直接取得所有property name。
確定! 回上一頁