function bindThis(f, oTarget) { //法1 f.bind(oTarget); //法2 return function(){ return f.call(oTarget,...arguments) } //法3 return function(){ return f.call(oTarget,arguments) } }
function bindThis(f, oTarget) { //法1 f.bind(oTarget); //法2 return function(){ return f.call(oTarget,...arguments) } //法3 return function(){ return f.call(oTarget,arguments) } }