![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
杂记
Yustin-z
这个作者很懒,什么都没留下…
展开
-
格式化时间函数-js
export function formatDate(date, fmt) { if (/(y+)/.test(fmt)) { fmt = fmt.replace(RegExp.$1, (date.getFullYear() + '').substr(4 - RegExp.$1.length)); } let o = { 'M+': date.getMonth() +...原创 2019-12-13 14:17:03 · 282 阅读 · 0 评论 -
swiper设置鼠标移入暂停播放,移出继续播放
var mySwiper=new Swiper('.swiper-container',{ speed:2000, autoplay:{ delay:2000, disableOnInteraction:false, }, loop:tr...原创 2019-11-21 10:34:55 · 4562 阅读 · 0 评论