var person={
fullName:function(city,country){
console.log(this.firstName+" "+this.lastName+","+city+","+country);
return this.firstName+" "+this.lastName+" ,"+city+","+country;
}
};
var person1={
firstName:'liu',
lastName:'jason'
};
person.fullName.apply(person1,['jiangsu','china']);
<!--方法复用: 下面的例子中person1对象没有fullName方法,通过apply可以在person1对象上使用fullName方法-->