call & apply

learning mark

 

http://uule.iteye.com/blog/1158829

 

https://segmentfault.com/q/1010000003494514

 

callA single parameter is passed in, applybut an array of parameters is passed in. When the number of callincoming parameters is greater than 3, the performance is not as good apply, so this optimization method will appear in the code of some class libraries

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326466931&siteId=291194637
Recommended