代码反应
内存反应
//注释:
1.下边的代码反应的其实是给Student对象的prototype(即Person,注意上边的new关键字)。
Student.prototype.say=function() {
alert("student say hello");
};
//注释:
1.下边的代码反应的其实是给Student对象的prototype(即Person,注意上边的new关键字)。
Student.prototype.say=function() {
alert("student say hello");
};