![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
Lanny_qian
这个作者很懒,什么都没留下…
展开
-
日常踩坑日记
20210628格式化日期function getLocalTime(nS) { return new Date(parseInt(nS) * 1000).toLocaleDateString(); }这个坑很深,日常的20201011的不会出现什么问题,但涉及到2020118这种就分不清是1月18还是11月8了。老老实实用new Date()吧....原创 2021-06-28 14:08:43 · 105 阅读 · 0 评论 -
Added non-passive event listener to a scroll-blocking ‘mousewheel‘ event.
一直报这个警告–event.js:106 [Violation] Added non-passive event listener to a scroll-blocking ‘mousewheel’ event. Consider marking event handler as ‘passive’ to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952试了网上的方法,安装依原创 2021-06-10 17:30:04 · 8577 阅读 · 0 评论