摘要: ios只能识别2019/05/30 20:08:40 这种格式的字段 // 后端传的值是2019-05-30 20:08:40.0 let time = res.data.replace(/\-/g,'/').replace(/\.0/g,'') 阅读全文
posted @ 2020-09-15 14:26 weekai 阅读(193) 评论(0) 推荐(0) 编辑
摘要: list="<span>123abc</span>" list = list.replace(/<.*?>/ig,""); 阅读全文
posted @ 2020-09-15 14:22 weekai 阅读(129) 评论(0) 推荐(0) 编辑
摘要: input[type='radio'], input[type='checkbox'] { -webkit-appearance: none; //去掉默认样式 border-radius: 0; border: none !important; //去掉边框 } 阅读全文
posted @ 2020-09-15 14:21 weekai 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 不会改变原来数组的有: concat() 连接两个或更多的数组,并返回结果。 every() 检测数组元素的每个元素是否都符合条件。 some() 检测数组元素中是否有元素符合指定条件。 filter() 检测数组元素,并返回符合条件所有元素的数组。 indexOf() 搜索数组中的元素,并返回它所 阅读全文
posted @ 2020-09-15 14:19 weekai 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 解决方案: 在主体内容前加一个暗锚: <div class="anmao" id="experts"></div> <div>主体内容</div> .anmao{ height 0; position relative; top -80px; } 阅读全文
posted @ 2020-09-15 11:27 weekai 阅读(225) 评论(0) 推荐(0) 编辑
摘要: const detectDeviceType = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? 'Mobile' : 'Desktop'; dete 阅读全文
posted @ 2020-09-15 11:18 weekai 阅读(184) 评论(0) 推荐(0) 编辑
摘要: let data = resList.data.data.sort((a, b) => { if (a.noticeData || b.noticeData) { return dayjs(b.noticeDate) - dayjs(a.noticeDate); } }); 阅读全文
posted @ 2020-09-15 11:16 weekai 阅读(203) 评论(0) 推荐(0) 编辑