而為什麼prototype 就可以讓method 相等呢? JS 的運作原理是當我們執行 nick.getName 的時候,會先去看 nick 這個instance 有沒有 getName ...
確定! 回上一頁