function student()
{
this.name="黄龙";
this.age=22;
this.speak=function()
{
document.write(this.name+this.age);
}
}
var myStudent=new student();
myStudent.age=23;
myStudent.speak();
function student()
{
this.name="黄龙";
this.age=22;
this.speak=function()
{
document.write(this.name+this.age);
}
}
var myStudent=new student();
myStudent.age=23;
myStudent.speak();