有人可以看看这个并帮助我理解为什么prototype.placing 不是控制台日志记录吗?谢谢您的帮助:
(function() {
function Rider(name) {
this.name = name;
this.show = function(showName) {
console.log(this.name + " rode in the " + showName);
};
}
var riderOne = new Rider("Billy Bobb");
riderOne.show("Summer Show");
Rider.prototype.placing = function(place) {
console.log(this.rider + " ended up in " + place + " at " +
this.showName);
}
})();