87,914
社区成员
发帖
与我相关
我的任务
分享
function Person() {
this.sayHello = function() {
Person.prototype.speak("hello");
}
}
Person.prototype.speak = function(words) {
alert(words);
}
p1 = new Person();
p2 = new Person();
p3 = new Person();