js继承
摘要:
1.apply继承 function Anmail(name,age){ this.name=name; this.age=age; this.eat=function(){ alert("Ok") } } function dog(name,age){ Anmail.apply(this, [na 阅读全文
posted @ 2017-01-09 01:54 老邱2 阅读(111) 评论(0) 推荐(0) 编辑
posted @ 2017-01-09 01:54 老邱2 阅读(111) 评论(0) 推荐(0) 编辑
posted @ 2017-01-09 01:37 老邱2 阅读(106) 评论(0) 推荐(0) 编辑
posted @ 2017-01-09 01:24 老邱2 阅读(100) 评论(0) 推荐(0) 编辑
posted @ 2017-01-09 00:35 老邱2 阅读(210) 评论(0) 推荐(0) 编辑