function SuperType(){ ? ?this.property = true;}SuperType.prototype.getSuperValue = function(){ ? ?return this.property;};function SubType(){ ? ?this.property = false;}//繼承了 SuperTypeSubType.prototype = new SuperType();var instance = new SubType();alert(instance.getSuperValue());為什么值是flase不是true;最好有詳細的解答,謝謝謝??!1
練習javascript繼承遇到的一個問題
qq_T毛_0
2017-05-23 19:05:32