摘要: 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 阅读(264) 评论(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 阅读(217) 评论(0) 推荐(0)
摘要: 详细 https://www.cnblogs.com/bieanju/p/5908571.html 阅读全文
posted @ 2019-08-07 16:37 justsilky 阅读(297) 评论(0) 推荐(0)
摘要: 转自 https://www.cnblogs.com/stoneniqiu/p/6077112.html 1.ios键盘挡住输入框。 inputcontent为输入框的样式。activeElement表示获得焦点的元素。但是这个方法只在app中有用,如果是在浏览器中还是会失效。 2.确保弹出来的是数 阅读全文
posted @ 2019-07-30 15:30 justsilky 阅读(363) 评论(0) 推荐(0)
摘要: 转自 https://blog.csdn.net/xuehu837769474/article/details/80603898 1、安卓浏览器看背景图片,有些设备会模糊。 用同等比例的图片在PC机上很清楚,但是手机上很模糊,原因是什么呢? 经过研究,是devicePixelRatio作怪,因为手机 阅读全文
posted @ 2019-07-30 15:13 justsilky 阅读(775) 评论(0) 推荐(0)
摘要: 转自 https://www.zhangxinxu.com/wordpress/2018/10/scroll-behavior-scrollintoview-%E5%B9%B3%E6%BB%91%E6%BB%9A%E5%8A%A8/ 阅读全文
posted @ 2019-01-14 17:48 justsilky 阅读(664) 评论(0) 推荐(0)
摘要: 转自 https://blog.csdn.net/wcy7916/article/details/83345705 阅读全文
posted @ 2019-01-04 14:30 justsilky 阅读(298) 评论(0) 推荐(0)
摘要: 转载自 http://www.sublimetextcn.com/ 阅读全文
posted @ 2018-11-09 18:02 justsilky 阅读(109) 评论(0) 推荐(0)
摘要: 转载自 https://www.cnblogs.com/qingkong/p/5039527.html 阅读全文
posted @ 2018-11-09 18:01 justsilky 阅读(116) 评论(0) 推荐(0)
摘要: 1.vue中在methods等中使用filters中的过滤器 this.$options.filters[filter](...args) 阅读全文
posted @ 2018-09-21 09:12 justsilky 阅读(123) 评论(0) 推荐(0)