#bindAll

underscore的bind和bindAll方法

bind方法和bindAll方法都是用来设定函数的this值的,区别是调用方式不同。varxiaoming={say:function(){console.log('Iamxiaoming');}}//bindvarfunc=bind(xiaoming,xiaoming.say);func();//Iamxiaomin...