自定义对象-ppt javascript

自定义对象 function Student(name){ this.name = name; this.getName = getName; } function getName(){ return this.name; } function Button1_onclick() { var s = new Student("lijie", 20, "asdad", "13971212"); alert(s.getName()); alert(s.name); }
ppt 文件大小:507.5KB