JavaScript繼承、對象枚舉-筆記

1、第一種繼承(運用原型鏈)app Grand. prototype. LastName = "姓楊"; function Grand() { } var grand= new Grand(); Father. prototype= grand; function Father() { var Name= "也姓楊、"; document. write( Name); } var father=
相關文章
相關標籤/搜索