![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
大脸小覃
这个作者很懒,什么都没留下…
展开
-
elementui 走马灯 高度固定,修改为自适应
elementui走马灯原创 2023-02-01 11:09:10 · 960 阅读 · 0 评论 -
判断当前是手机端还是网页端
判断网页端还是手机端原创 2022-11-17 15:29:00 · 127 阅读 · 0 评论 -
秒转 时分秒
let result = parseInt(value)let h = Math.floor(result / 3600);let m = Math.floor((result / 60 % 60));let s = Math.floor((result % 60));let res = '';if(h != '0') res += `${h}时`;if(m != '0') res += `${m}分`;res += `${s}秒`;return res;原创 2022-04-11 11:40:02 · 47 阅读 · 0 评论 -
ios系统使用window.location.href跳转失败
if (navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)) { location.href = '/dealSuccess/' + orderNum;//此处判断是否为ios后,使用location.href跳转 } window.location.href = '/dealSuccess/' + orderNum;//安卓跳转 ...原创 2021-05-08 10:35:36 · 2656 阅读 · 0 评论