![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
记录开发中遇到的JS问题
welnee
这个作者很懒,什么都没留下…
展开
-
关于元素 offsetWidth、offsetHeight、clientWidth、clientHeight 等等的详解
width 和 height宽度:offsetWidth 返回元素的宽度(包括元素宽度、内边距和边框,不包括外边距)clientWidth 返回元素的宽度(包括元素宽度、内边距,不包括边框和外边距)style.width 返回元素的宽度(包括元素宽度,不包括内边距、边框和外边距)scrollWidth 返回元素的宽度(包括元素宽度、内边距和溢出尺寸,不包括边框和外边距),无溢出的情况,与clientWidth相同高度:offsetHeight 返回元素的高度(包括元素高度、内边.原创 2022-04-02 20:41:51 · 164 阅读 · 0 评论 -
Javascript 刷新页面的几种常用方法
1、history.go(0)2、window.location.reload() 或 window.location.reload(true)3、location = location4、location.assign(location)5、document.execCommand(’‘Refresh’’)6、window.navigate(location)7、location.replace(location)8、document.URL = location.href...原创 2020-12-11 16:47:38 · 224 阅读 · 0 评论