摘要:        
一、this的相关理解与解读 1、各角度看this。 1)ECMAScript规范: this 关键字执行为当前执行环境的 ThisBinding。 2)MDN: In most cases, the value of this is determined by how a function is     阅读全文
posted @ 2021-04-05 15:00
码农三少
阅读(140)
评论(0)
推荐(0)
        
            
        
        
摘要:        
一 仅水平居中 1 行内元素 1)给父元素添加 text-align:center 即可 <div class="parent"> <span class="child">我是子元素</span> </div> .parent { width: 200px; background-color: re    阅读全文
posted @ 2021-04-05 14:57
码农三少
阅读(44)
评论(0)
推荐(0)
        
            
        
        
摘要:        
一 问题 1 数组的扁平化? 1)就是将一个n层数组、即n维数组(n>=1)转换为只有一层的数组。 如数组 arr = [1, [2, [3, 4]]]; 经过我们 myFlatten 函数的处理后、 即调用 myFlatten(arr) 应该得到 [1, 2, 3, 4] 。 【注:以下内容均假定    阅读全文
posted @ 2021-04-05 14:56
码农三少
阅读(148)
评论(0)
推荐(0)
        
                    
                
浙公网安备 33010602011771号