摘要: window.location.href = document.referrer; 阅读全文
posted @ 2020-03-30 14:19 justsilky 阅读(145) 评论(0) 推荐(0) 编辑
摘要: eruda,vconsole 阅读全文
posted @ 2020-03-23 14:32 justsilky 阅读(92) 评论(0) 推荐(0) 编辑
摘要: chrome中的input不要加type=”number”,有问题,输入负号截取到第一个字符串是空,就默认text就行 若允许负数加上allowMinus类,正数只加limitNumber 以下可以封装成函数,加到DOM上的οnkeyup=foo(this) $(document).on('keyu 阅读全文
posted @ 2020-03-13 15:37 justsilky 阅读(181) 评论(0) 推荐(0) 编辑
摘要: transform作用的元素增加translateZ,父级元素增加 transform-style: preserve-3d; 阅读全文
posted @ 2019-12-02 18:14 justsilky 阅读(1104) 评论(0) 推荐(0) 编辑
摘要: var winHeight = window.innerHeight ? window.innerHeight : $(window).height(); var scrollToBottomFlag = false; $(window).scroll(function() { scrollToBottomFlag = ($(window).scrollTop() + winHeight > $( 阅读全文
posted @ 2019-11-13 11:13 justsilky 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 通过cmd命令控制台关闭已经打开的端口号 在出现的窗口里面输入 netstat -ano, 就会出现所有的端口号, Local Address下面的是端口号, PID就是某程序占用的进程号, 这个进程号先记下来 打开任务管理器选择详细信息找到对应的进程->单击右键->结束任务 通过cmd命令控制台关 阅读全文
posted @ 2019-11-12 14:24 justsilky 阅读(638) 评论(0) 推荐(0) 编辑
摘要: https://www.hangge.com/blog/cache/detail_2144.html# 阅读全文
posted @ 2019-09-29 13:55 justsilky 阅读(145) 评论(0) 推荐(0) 编辑
摘要: jQuery的父,子,兄弟节点查找方法 jQuery.parent(expr) 找父亲节点,可以传入expr进行过滤,比如$("span").parent()或者$("span").parent(".class") jQuery.parents(expr),类似于jQuery.parents(exp 阅读全文
posted @ 2019-09-27 10:32 justsilky 阅读(2694) 评论(0) 推荐(0) 编辑
摘要: 1.判断是否为同一天 function isSameDay(t) { return new Date(Number(t)).toDateString() new Date().toDateString(); } 2. 将时间字符串转换为时间戳NAN var data = "2019-01-22 11 阅读全文
posted @ 2019-09-20 11:12 justsilky 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 转自 https://www.cnblogs.com/lvdabao/articles/3651779.html IE中: document.body.clientWidth ==> BODY对象宽度 document.body.clientHeight ==> BODY对象高度 document. 阅读全文
posted @ 2019-08-27 09:42 justsilky 阅读(202) 评论(0) 推荐(0) 编辑