摘要: 下边框0.5px border: { border-bottom: 1px solid transparent; border-image: linear-gradient(to bottom, transparent 50%, #eee 50%) 0 0 100%/1px 0; } 上边框 或者 阅读全文
posted @ 2022-01-12 17:59 liumcb 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 今天在看同事写的代码,webpack中使用entry入口的时候,有一段很奇怪的代码,引入了bable-polyfill,我以前没有这样配置过。 entry: { app: ['babel-polyfill', './src/index.js'], }, bable-polyfill: 作用: 是用来 阅读全文
posted @ 2021-11-18 11:13 liumcb 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 今天在帮朋友看个问题,怎么修改h5软键盘的文字。将右下角的搜索更改为发送。 文档中很多都是修改为前往,搜索,提交等。修改的<input type='search' />属性,其实还是有另外一个属性的:enterkeyhint <input enterkeyhint="enter"> <input e 阅读全文
posted @ 2021-10-11 18:00 liumcb 阅读(1978) 评论(0) 推荐(0) 编辑
摘要: 今天使用listView的时候发现页面此时的下拉刷新属性,只能往下滚动,当手指触摸屏幕往上滚动的时候,页面没有任何的反应。。。也就是只能往下滚动不能往上滚动,对于经常使用ListView的情况下,我没有发现写法有任何的错误。 于是开始往其他页面进行查找错误,发现使用l antd-mobile的<Ta 阅读全文
posted @ 2021-09-26 16:03 liumcb 阅读(853) 评论(0) 推荐(0) 编辑
摘要: 今天在看腾讯课堂,姬成老师的课程,关于预编译和执行上下文讲解的特别详细。让我明白之前一直迷惑的执行上下文顺序。 这点也是面试的时候经常遇到的面试题。 预编译:发生在函数执行的前一刻,局部声明的时候。 预编译过程: 1、创建AO对象; 2、找形参和变量声明,将变量和形参作为AO对象的属性名,值为und 阅读全文
posted @ 2021-09-06 16:22 liumcb 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 使用hooks,antd-mobile进行列表的下拉刷新。然后第一页进行列表的刷新了,但是后面没有更新。 困扰了好久,找到文章解决这个问题。记录一下。 转载: https://blog.csdn.net/daoke_li/article/details/115165513 阅读全文
posted @ 2021-08-05 10:01 liumcb 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 我感觉递归是我比较薄弱的,这个要好好研究研究。 1、递归0-100的和 阅读全文
posted @ 2021-05-21 16:57 liumcb 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 将多维数组转为一维数组: 1、使用数组的join( )方法: const arr = [1, 2, 3, 4, 5, [6, 7, 8, [9, 10, 11, 12, [13, 14, 15, 16]]]]; const arrString = arr.join(); const arrList 阅读全文
posted @ 2021-05-21 15:08 liumcb 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 数组去重不仅在工作中经常使用,也会在面试中经常问到,现在有几种常用的方法: 比如要将数组去重: const arr = [1, 2, 3, "1", 2, undefined, undefined, "undefined", NaN, NaN]; 方法一: 直接通过indexOf 或者 includ 阅读全文
posted @ 2021-05-19 17:20 liumcb 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 将数组中有相同的key合并为新的数组,其实也就是将一维数组修改为多维数组: let data = [ { name: "苹果", orderCode: "AAAAAAAA" }, { name: "橘子", orderCode: "BBBBBBBB" }, { name: "香蕉", orderCo 阅读全文
posted @ 2021-05-18 15:14 liumcb 阅读(1792) 评论(0) 推荐(0) 编辑