1. 首页
  2. 编程语言
  3. Delphi
  4. js构造函数、索引数组和属性的实现方式和使用

js构造函数、索引数组和属性的实现方式和使用

上传者: 2020-12-03 05:00:16上传 PDF文件 54.77KB 热度 15次
[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]
下载地址
用户评论