r person1 = {  fullName: function() {    return this.firstName + " " + this.lastName;  }}var person2 = {  firstName:"John",  lastName: "Doe",}person1.fullName.call(person2);  // 返回 "John Doe"

尝试一下 »