修改this指向 apply()方法call()方法bind()方法注意 apply()方法 function bindThis(f, oTarget) { return function(){ return f.apply(oTarget,arguments); } } call()方法 function bindThis(f, oTarget) { return function(x,y){ return f.call(oTarget,x,y) } } bind()方法 function bindThis(f, oTarget) { return f.bind(oTarget) } 注意 apply和call的参数 前者是数组,后者不是