larry0442

Results 19 comments of larry0442

#### 行内 - a - i - em - strong - span - a - br - button - label - input - select - tr - td - img...

降维+去重 ```js const flatten = (arr) => { const res = [ ]; arr.forEach(item=>{ Array.isArray(item) ? res.push.apply(res, flatten(item)) : res.push(item); }) return res; } const distint = (arr) => {...

shuffle的思想· ```js const randomSort = (arr=[]) => { const length = arr.length; for(let index = 0; index < length; index++) { let randomIndex = Math.floor(Math.random()*(length - index)) + index; [arr[index],...

``` const getSearchParam = (param) => { const search = window.location.search; let res = {}; search.slice(1).split('&').forEach(item=> { const [key, value] = item.split('='); res[key] = value; }) return res[param]; } ```...

> 我个人常用的 > > ```js > // 写一个判断类型的方法 > > const Type = (function () { > const types = {}; > const supperTypes = [ > 'String', > 'Number',...

ball ball you 不要用360勒哈哈哈。我是被他搞怕了,现在裸奔哈哈哈,大不了重装

## 值属性 1. Infinity 2. null 3. undefined 4. globalThis 5. NaN(字面量) ## 函数属性 1. parseInt /parseFloat 2. eacape /unescape 3. encodeURI(Component) / decodeRUI(Component) 4. eval/ uneval 5. isNaN 6....

> ## 值属性 > 1. Infinity > 2. null > 3. undefined > 4. globalThis > 5. NaN(字面量) > > ## 函数属性 > 1. parseInt /parseFloat > 2. eacape /unescape...

```html ``` 还有其他漏了的吗

- clear: both; 伪类或空标签 - 直接设置宽高?只能设置在一些固定尺寸的内容,没有自适应 不太好 - bfc 详细参考在这里 [bfc-MDN](https://developer.mozilla.org/zh-CN/docs/Web/Guide/CSS/Block_formatting_context)