apply, call and bind What is the difference

All three functions can be applied to other objects, not the objects themselves, apply, call is a direct function call, bind a bind, do need to call again, and apply the difference between call is apply accepts an array as a parameter, and the call is accepts a comma-separated list an unlimited number of parameters

Guess you like

Origin www.cnblogs.com/rabbitstudent/p/11882587.html