摘要:        
bind() ES5新增方法 主要作用:将函数绑定到某个对象中,并且有返回值(一个函数),可用于函数的柯里化,对于不同模块配置不同的参数 function getConfig(color, size, otherConfig){ console.log(color, size, otherConfi    阅读全文
posted @ 2021-10-06 11:07
WJJ呀
阅读(29)
评论(0)
推荐(0)
        
            
        
        
摘要:        
1.找出数组中的最大值 let arr = [1, 2, 3, 4, 8, 10] let maxArr = Math.max.apply(null, arr) console.log(maxArr) // 10 2.将类数组转换为真正数组 function fn(){ console.log(ar    阅读全文
posted @ 2021-10-06 10:47
WJJ呀
阅读(56)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号