<script language="javascript">
Shape=function(sides){
this.side=sides;
this.saySide=function(){
alert("这个型状有:"+this.side+"条边!");
}
}
RectAngle=function(w,h){
this.weight=w;
this.height=h;
this.showArea=function(){
alert("四边型的面积为:"+this.weight*this.height);
}

}
Lxit={version:'lxit 1.0'};
Lxit.extend=function(p,c,a){
//p.apply(c,new Array(4));
p.call(c,a);
}
Lxit.extend(Shape,RectAngle,4);
var rect = new RectAngle(10,10);
rect.showArea();
rect.saySide();
</script>为什么 那个p.call(c,a);这里没有把 p的属性和方法copy 到 c中去,原理是可以,其他试法call() 可以,唯动态call就不行了。谁有什么好的解决方案不?