js构造函数、索引数组和属性的实现方式和使用
[removed] function p(){ var len=arguments.length; for(var i=0;i"); } } function Myclass(x,y){ this.x=x; this.y=y; this.show=function(){ return this.x+this.y; } } var m1=new Myclass(1,2); var m2=new Myclass(3,4); p(m1.show(),m2.show()); [removed]
下载地址
用户评论