![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Js
文章平均质量分 70
Mr_LiBo
这个作者很懒,什么都没留下…
展开
-
js数组依据下标删除元素
1、创建数组var array = new Array();var array = new Array(size);//指定数组的长度var array = new Array(item1,item2……itemN);//创建数组并赋值2、取值、赋值var item = array[index];//获取指定元素的值array[index] = value;//为指定元素赋值3、添加新元素array.push(item1,item2……itemN);//将一个或多个元素加入数组,.原创 2020-08-19 15:53:22 · 7992 阅读 · 0 评论 -
时间格式化Js
//,时间格式化输出,如03:25:1986。每10ms都会调用一次functiondateFormatHMS(micro_second){//秒数varsecond=Math.floor(micro_second/1000);//小时位varhr=fillZeroPrefix(Math.floor(second/(60*60)));second=second-hr*60*60...原创 2020-05-29 17:22:00 · 175 阅读 · 0 评论