- 博客(1)
- 收藏
- 关注
原创 JS实现继承的方法
一、对象冒充: function Parent(username){ this.username = username; this.hello = function(){ alert(this.username); } } function Child(username,password){ this.method = Parent; //meth...
2018-11-27 13:34:05
518
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人