This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| **柯里化**:将一个带有多个参数的函数转换为一次一个的函数的过程。每次调用函数时,它只接受一个参数,并返回一个函数,直到传递所有参数为止。 | |
| ```language | |
| const add = (x,y,z) => x+y+z; | |
| const newAdd = x => y => z => x + y + z; | |
| ``` | |
| **柯里化或偏函数有什么用?** | |
| 无论是柯里化还是偏应用,我们都能进行部分传值,而传统函数调用则需要预先确定所有实参。如果你在代码某一处只获取了部分实参,然后在另一处确定另一部分实参,这个时候柯里化和偏应用就能派上用场。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://gitbook.cn/gitchat/column/5a13be9775462408e0da8d9d | |
| [docker 基本](https://gitbook.cn/gitchat/column/5a13be9775462408e0da8d9d) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1.Android target: not installed | |
| 上面的问题解决了,我们在build android之前先检查一下环境是否配置成功,输入: cordova requirements | |
| 问题又来了,出现下图的错误提示: | |
|  | |
| https://blog.csdn.net/qq_21963133/article/details/80012899 | |
| echart怎么让南海诸岛不显示或隐藏部分省市名称 | |
| https://blog.csdn.net/xieamy/article/details/70256542 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.zhihu.com/question/22624898[brew](https://www.zhihu.com/question/22624898) |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ; | |
| module.exports = { | |
| // entry 表示 入口,Webpack 执行构建的第一步将从 Entry 开始,可抽象成输入。 | |
| // 类型可以是 string | object | array | |
| entry: './app/entry', // 只有1个入口,入口只有1个文件 | |
| entry: ['./app/entry1', './app/entry2'], // 只有1个入口,入口有2个文件 | |
| entry: { // 有2个入口 | |
| a: './app/entry-a', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| **不需要第三个变量 互换 a b ** | |
| ```language | |
| var a = 1, b = 2; | |
| // 1 | |
| [a, b] = [b, a] | |
| // 2 | |
| a = [b, b = a][0]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| **清除浮动元素带来的父元素高度塌陷问题** | |
| ```language | |
| .clearfix:after{ | |
| centent:"";//设置内容为空 | |
| height:0;//高度为0 | |
| line-height:0;//行高为0 | |
| display:block;//将文本转为块级元素 | |
| visibility:hidden;//将元素隐藏 | |
| clear:both//清除浮动 |