![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
luoxindong
这个作者很懒,什么都没留下…
展开
-
获取form表单数据的方法
原创 2021-09-09 16:58:32 · 421 阅读 · 0 评论 -
js快速的获得一个格式化的当前日期,只需三步
var temp = new Date(); var regex = /\//g; (temp.toLocaleDateString() + ' ' + temp.toLocaleTimeString().slice(2)).replace(regex,'-');原创 2021-06-18 16:36:40 · 78 阅读 · 0 评论 -
平滑的是页面回到顶部
5.如何平滑滚动到页面顶部? const scrollToTop = () => { const c = document.documentElement.scrollTop || document.body.scrollTop; if (c > 0) { window.requestAnimationFrame(scrollToTop); window.scrollTo(0, c - c / 8); } } // 事例 scrollToTop() 作者:小耿学前端 链接:https://jue原创 2020-06-02 18:08:42 · 184 阅读 · 0 评论 -
js实现瀑布流最简单方法
Document原创 2020-06-02 17:17:58 · 111 阅读 · 0 评论