- 博客(3)
- 收藏
- 关注
原创 js 24小时制 给定多个时间段 计算剩下的时间段
js 24小时制 给定多个时间段 计算剩下的时间段 优化//入参 格式 unselectTime=[{ startTime:"1:00", endtTime:'3:00'}]//返回数据 [{ startTime:"00:00", endtTime:'1:00'},{ startTime:"3:00", endtTime:'00:00'}]//转化成分钟 toMinites(time){ let mins= null let times=time.split(':') m
2020-07-11 12:32:21
1217
原创 文字打字效果
@ 打字效果react 打字效果class Typing { constructor(opts) { this.opts = opts || {}; this.source = opts.source; this.output = opts.output; this.delay = opts.delay || 120; this.chain = { parent: null, dom: this.output, val:
2020-06-03 21:11:14
221
原创 js 24小时制 给定多个时间段 计算剩下的时间段
jsjs 24小时制 给定多个时间段 计算剩下的时间段//已经存在的时间的段 时间段不能有交集let arr=[['5:00','6:00'],['9:00','11:00'],['13:00','14:00'],['1:00','2:00'],['22:00','00:10']] //时间 排序timeSort=(arr)=>{ return arr.sort(function (a,b){ return Date.parse(`2000/01/01 ${a[0]}:
2020-05-16 23:10:08
1279
4
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅