getOwnPropertyNames () ,能回傳所有可列舉、不可列舉的特性所組成的陣列。 來個例子測試一下: var obj = { name: 'Bill', habbit: 'Read books' } Object.
確定! 回上一頁