js
Julie薇薇
生活再苦再难,氧气总是够吸的吧
展开
-
scrollTop滚动的高度距离
function ScollPostion() { var t, l, w, h; if (document.documentElement && document.documentElement.scrollTop) { t = document.documentElement.scrollTop; // l = document....原创 2019-04-25 17:19:13 · 1103 阅读 · 0 评论 -
js获取当前URL、参数、端口、IP等信息
1、设置或获取整个 URL 为字符串window.location.href2、设置或获取 URL 的协议部分window.location.protocol3、设置或获取 URL 的主机部分window.location.host4、设置或获取与 URL 关联的端口号码window.location.port5、设置或获取与 URL 的路径部分(就是文件地址)wi...转载 2019-08-02 16:17:40 · 240 阅读 · 0 评论