JavaScriptモデル
549 ワード
function Campus(location, name) {
this.location = location;
this.name = name;
}
Campus.prototype.information = function() {
console.log(this.location + ', ' + this.name);
}
var aaa = new Campus(' ', ' ');
var bbb = new Campus(' ', ' ');
console.log(aaa === bbb);
console.log(aaa.information === bbb.information);
aaa.information();
bbb.information();
/**
* @description
*
*
*
* ,
*/