You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
有一个疑惑: var obj=[2,3,7,3,8,1]; Math.max.apply(null,obj);//output 8 Math.max(obj);//output NaN
为何使用了apply后,第二个参数却有了展开语法的效果?难道使用apply后参数会被展开?
我能理解Math.max(...obj),但是apply明明传入的是数组,和Math.max要求的参数不一致呀
说一下对bind,call,apply三个函数的认识,自己实现一下bind方法
The text was updated successfully, but these errors were encountered: