摘要: 一、对象冒充code:<script type="text/javascript">function Parent(username){this.username = username;this.getInfo = function(){alert(this.username);}}function Child(username,password){this.method = Parent;this.method(username);delete this.method;//这三行代码是本质sthis.password = password;this.getIn 阅读全文
posted @ 2012-02-11 22:39 Crossci 阅读(148) 评论(0) 推荐(0) 编辑