function sayHello(){
return this.name
}
function toSayHello(){
var h = 'hello'+sayHello.call(this);
}
var cat = {
name : 'cat'
}
var dog = {
name : 'dog'
}
sayHello.call(cat)
toSayHello.call(cat)
// 不使用this
function say(context){
return context.name
}
function toSay(context){
var h = 'hello'+say(context);
console.log(h)
}
toSay(cat)