1.构造函数法
function
MyClass(id,age,name)
{
this
.id = id;
this
.age = age;
this
.name = name;
}
1.构造函数法
function
MyClass(id,age,name)
{
this
.id = id;
this
.age = age;
this
.name = name;
}