原型與原型鏈

  • 2021 年 5 月 20 日
  • 筆記

三句話道破原型鏈: 1.每個函數(類)天生自帶一個屬性prototype,屬性值是一個對象,裏面存儲了當前類供實例調用的 …

Continue Reading