js 对象冒充
有没有无参构造函数的继承呢?
类似
function a(){ this.show=function(){ alert("a"); }}function b(){ this.myA=a; delete this.myA;}function ok(){ var myB= new b(); myB.show();}
function a(){ this.show=function(){ alert("a"); }}function b(){ a.call(this)}function ok(){ var myB= new b(); myB.show();}