hasOwnProperty 。任何繼承 Object 的都可以使用這兩種方法。 ... 換句話說,如果直接在物件內確認key 是可用的話, hasOwnProperty 只會回傳true。
確定! 回上一頁