javascript 模拟java 实现继承的5种方式
摘要:1、继承第一种方式:对象冒充 function Parent(username){ this.username = username; this.hello = function(){ alert(this.username); } } function...
阅读全文
posted @ 2015-09-12 14:30
posted @ 2015-09-12 14:30
posted @ 2015-04-22 18:23
posted @ 2015-04-13 17:41
posted @ 2015-03-08 00:30
posted @ 2015-02-25 17:48