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
posted @ 2017-02-27 19:47
posted @ 2017-02-19 09:00
posted @ 2017-02-19 08:35
posted @ 2017-02-17 19:55