📜  js 构造函数语法 - Javascript 代码示例

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

代码示例1
var MyConstructor = function(p1, p2, p3){
  this.p1 = p1;
  this.p2 = p2;
  this.p3 = p3;
};