function ClassA() { this.a=[]; this.aa=100; }
function ClassB() { }
ClassB.prototype = new ClassA;
ClassB.prototype.b=function(){return "classbb"};
for (var l in ClassB.prototype){
Array.prototype[l] = ClassB.prototype[l];
}
var array1 = [];
alert(array1.b());
Может
Array.prototype [l] = ClassB.prototype [l]
быть замененным на
Array.prototype [l] = ClassB [l]
?Может ли кто-нибудь помочь мне?Спасибо.