上一页 1 ··· 5 6 7 8 9 10 11 下一页

2019年9月19日

摘要: 要实现这个样式,一般会使用2个div重叠实现,现在background-clip使用一个div就实现。 background-clip: 代码 background-clip: padding-box; background-clip: border-box; background-clip: bo 阅读全文
posted @ 2019-09-19 13:59 chenyi4 阅读(142) 评论(0) 推荐(0) 编辑

2019年9月18日

摘要: 实现函数 calllt,调用之后满足如下条件1.返回的结果为调用fn之后的结果2.fn的调用为calllt的第一个参数之后的全部参数 方法1 使用es6 方法2 循环出一个新数组 方法3 使用 阅读全文
posted @ 2019-09-18 11:37 chenyi4 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 方法1 方法2 reduce 方法 方法3 方法4 方法4混合了1和3,只是多了一个array判断是否拥有indexOf方法,Array构造是否拥有原型方法indexOf 阅读全文
posted @ 2019-09-18 10:56 chenyi4 阅读(1895) 评论(0) 推荐(0) 编辑

2019年9月17日

摘要: 输出结果是 underfined, 1, 2 因为实际代码里面 a被提升在顶部声明了,而且函数声明先于变量申明;所以实际运行里面代码是这样的 阅读全文
posted @ 2019-09-17 14:10 chenyi4 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 方法1 new Set() es6中的结构,其中元素不能重复 返回 {1,2,3,'2','3'}, [...] 解构成数组 方法2 阅读全文
posted @ 2019-09-17 14:00 chenyi4 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 输出的结果是 456 因为 对象的键值会转换为字符串 a[b] == a["[object Object]"] 可以打印一下看看结果 和这个结果 阅读全文
posted @ 2019-09-17 13:19 chenyi4 阅读(462) 评论(0) 推荐(0) 编辑

2019年9月2日

摘要: connection.query 查询表 1.依赖 const mysql = require('mysql'); const mysql = require('mysql'); 连接数据库代码 var connection = mysql.createPool({ //创建mysql实例 host 阅读全文
posted @ 2019-09-02 15:17 chenyi4 阅读(640) 评论(0) 推荐(0) 编辑
摘要: 先来显示一下它的过程 1.给一个数组 10,22,3,90,8,6 从小到大 快速排序 2.选取它的第一个值作为flag 其他数组以此做排序,比它大的放右边,比它小的放左边。[10, 22, 3, 90, 8, 6] => { 3, 8, 6 } 10 { 22, 90 } 3.上一步得到的数组是{ 阅读全文
posted @ 2019-09-02 10:26 chenyi4 阅读(103) 评论(0) 推荐(0) 编辑

2019年8月27日

摘要: circle 或 ellipse 阅读全文
posted @ 2019-08-27 12:00 chenyi4 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 线性渐变 (top) 线性渐变 (left) 线性渐变(100deg) 线性渐变(left top) 阅读全文
posted @ 2019-08-27 11:17 chenyi4 阅读(113) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 下一页

导航