方法一:
function bindThis(f, oTarget) {
return function(){
return f.apply(oTarget,arguments);
};
}
方法二:
function bindThis(f, oTarget) {
return f.bind(oTarget);
}
方法三:
function bindThis(f, oTarget) {
return function(x,y){
return f.call(oTarget,x,y);
};
}