functionMyClass(){SuperClass.call(this);OtherSuperClass.call(this);}MyClass.prototype=Object.create(SuperClass.prototype);//inheritmixin(MyClass.prototype,OtherSuperClass.prototype);//mixinMyClass.prototype.myMethod=function(){//doathing};這個代碼mixin不是很懂
MDN中的一個繼承多個對象的DEMO問題
慕桂英546537
2019-04-21 20:40:06