📌  相关文章
📜  如何在 javascript 代码示例中创建对象

📅  最后修改于: 2022-03-11 15:01:13.943000             🧑  作者: Mango

代码示例6
var student = {                 // object name
firstName:"Jane",           // list of properties and values
lastName:"Doe",
age:18,
height:170,
fullName : function() {     // object function
   return this.firstName + " " + this.lastName;
}
};