📌  相关文章
📜  使用构造函数创建对象 javascript 代码示例

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

代码示例2
function Person(first, last, age, eye) {
  this.firstName = first;
  this.lastName = last;
  this.age = age;
  this.eyeColor = eye;
}