getOwnPropertyNames (). 9. 1. const object1 = {. 2. a: 1,. 3. b: 2,. 4. c: 3. 5. }; 6. . 7. console.log(Object.getOwnPropertyNames(object1));.
確定! 回上一頁