Liqiuyue

Results 32 comments of Liqiuyue

```javascript function versionSort(arr) { //1. // 先将版本号每一位放到数组保存 var temp = arr.map(v => v.split(".")) //利用sort属性排序传入规则函数 function rule(a, b) { var j = 0 var minLen = Math.min(a.length, b.length) while (j <...

大家可以看我写的这篇文章[Vue2.x与Vue3响应式实现核心代码对比](https://juejin.im/post/6855129007412346888),应该解释这个面试问题

字节跳动让我写一道前序遍历

[阿里巴巴淘系技术出品之网页布局](https://juejin.im/post/6865107864139087886#heading-0) 这个非常值得一看

还有实现中间自适应,两边固定等一系列

中间固定,左右自适应 ```html //1.float方法。这个方法中间的盒子必须放在左右盒子的下面 center style{ .left { width: 200px; height: 500px; background-color: #ccc; float: left; } .center { height: 500px; background-color: royalblue; } .right { width: 200px; height: 500px; background-color:...

左边固定,右边自适应 ```html /* 基础框架*/ 111 222222222222222222222 .box1{ width:300px; height: 600px; } ``` ```css /* 1.float。记得加padding-left */ .box1{ float: left; } .box2{ width: 100%; height: 600px; padding-left: 300px;/*左盒子的宽度*/ } /* 2.position...

```javascript function shuffle(arr) { let len = arr.length; let index; while (len > 0) { index = Math.floor(Math.random() * len); len--; [arr[len], arr[index]] = [arr[index], arr[len]]; } return arr; }...

解释BFC是什么--> BFC可以解决哪几类问题