【文件属性】:
文件名称:class:javascript类继承
文件大小:2KB
文件格式:ZIP
更新时间:2021-05-17 17:16:49
JavaScript
班级
javascript类继承
var Person = Class({
constructor: function(fname, lname){
this.fname = fname;
this.lname = lname;
},
prototype : {
introduce: function(){
return ['Hi my name is', this.fname, this.lname].join(' ');
},
fullName : function(){
return this.fname + ' ' + this.lname;
}
}
});
var Student = Class({
constructor: function(f
【文件预览】:
class-master
----.gitignore(574B)
----README.md(2KB)
----.gitattributes(378B)
----class.js(2KB)