![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
东方雨舞
这个作者很懒,什么都没留下…
展开
-
js获取当前时间的年月日时分秒
js获取时间年月日时分秒原创 2023-03-01 09:52:02 · 300 阅读 · 0 评论 -
页面下载文件
页面下载文件原创 2023-02-16 15:47:53 · 161 阅读 · 0 评论 -
js数字转换为时分秒显示
setHms:function(times){if(times <= 0){return '00:00:00';}else{let hh = parseInt(times / 3600); //小时let shh = times - hh * 3600;let mm = parseInt(shh/ 60);let ss = shh - mm * 60;return (hh < 10 ? '0'+hh : hh) + ':' + (mm < 10 ? '0'+原创 2022-04-26 16:43:33 · 1356 阅读 · 0 评论 -
el-input限制输入长度和只可以输入数字
<el-input style="width: 200px" placeholder="15到240的数字" type="number" suffix-icon="el-icon-time" clearable v-model="time" onkeyup="value=value.replace(/[^\d]/g,'')" oninput="if(value.length>3)value=value.slice(0,3)">...原创 2022-02-14 07:31:24 · 4051 阅读 · 0 评论