js 继承(1)

js 如何实现继承呢? 下面是一个简单的继承demo Js代码   console.clear();   //child 继承 parent   var extend=function(child,parent)   {     child.prototype=new parent();        }   function A(){     this.name="A";     this.sa
相关文章
相关标签/搜索