随笔分类 - javascript
摘要:需求截图: 截图说明:上半部分为antd的手风琴效果,内容为视频漏录的时间段;下半部分为条形时间段(css实现) 下半部分视频漏录时间长条实现思路: 漏录条和底部时间分别为两个div 漏录条div ① div1: 宽度为100%,背景颜色:灰色 ② div2: 漏录时间片段,背景颜色:红色 ③ 漏录
阅读全文
摘要:展开一个数组 合并数组 在函数中使用 function sum(...numbers){ return numbers.reduce((preValue,currentValue)=>{ return preValue + currentValue }) } console.log(sum(1,2,
阅读全文
摘要:描述: 从一个大数组中过滤掉一个小数组,获得大数组中的其他数据 1. item为字符串 const words = ['spray', 'limit', 'elite', 'exuberant', 'destruction', 'present']; const w = ['spray', 'lim
阅读全文