2017年2月27日

JavaScript中B继承A的方法

摘要: js继承有5种实现方式:1、继承第一种方式:对象冒充 function Parent(username){ this.username = username; this.hello = function(){ alert(this.username); } } function Child(user 阅读全文

posted @ 2017-02-27 19:47 Me丶微笑 阅读(4953) 评论(0) 推荐(0) 编辑

导航