JavaScript继承、对象枚举-笔记

1、第一种继承(运用原型链)app Grand. prototype. LastName = "姓杨"; function Grand() { } var grand= new Grand(); Father. prototype= grand; function Father() { var Name= "也姓杨、"; document. write( Name); } var father=
相关文章
相关标签/搜索