underscore source address: https://github.com/jashkenas/. 852 lines
result = func.apply(context, args);
but it doesn"t seem to work, so why not just use func (args)
here?underscore source address: https://github.com/jashkenas/. 852 lines
result = func.apply(context, args);
but it doesn"t seem to work, so why not just use func (args)
here?problems pointed to by this
either use the es6 arrow function or replace this with that in the body of the var that = this function
apply just points to the this of your anonymous function
.