1、修改this指向:封装函数 f,使 f 的 this 指向指定的对象 //解法1:apply function bindThis(f, oTarget) { return function(){ return f.apply(oTarget,arguments); } } //解法2:bind function bindThis(f, oTarget) { return f.bind(oTarget); } //解法3:call function bindThis(f, oTarget) { return function(x,y){ return f.call(oTarget,x,y...