会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
爬bug
博客园
首页
新随笔
联系
订阅
管理
2017年12月21日
解决谷歌浏览器input默认填充背景颜色
摘要: input:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px white inset; -webkit-text-fill-color: #333;}
阅读全文
posted @ 2017-12-21 11:47 萌新ol
阅读(3614)
评论(0)
推荐(0)
2017年12月13日
时间格式转换
摘要: 将毫秒转换为xxxx-xx-xx格式日期 function timeChange(time){ var newTime = new Date(time) ; Date.prototype.toLocaleString = function() { return this.getFullYear()
阅读全文
posted @ 2017-12-13 12:34 萌新ol
阅读(104)
评论(0)
推荐(0)
2017年7月27日
点击其他地方隐藏div
摘要: 有很多下拉菜单,点击其他地方会隐藏这个下拉菜单 实现方法 $("body").click(function(){ $(".div").hide(); }); 这样点击下拉框自身,也会隐藏,添加阻止事件冒泡 $(".div").click(function(event){ event.stopProp
阅读全文
posted @ 2017-07-27 16:27 萌新ol
阅读(438)
评论(0)
推荐(0)
2017年7月17日
遗忘的属性
摘要: 取消table标签的宽度自适应 table{table-layout:fixed;word-break:break-all;} 设置input 提示文字的颜色 input::-webkit-input-placeholder{color:#acacac;}
阅读全文
posted @ 2017-07-17 14:22 萌新ol
阅读(74)
评论(0)
推荐(0)
2017年7月11日
数组排序
摘要: sort()方法 var arr = [1,22,223,33,55]; console.log(arr.sort()) //打印结果:[1,22,223,33,55] // 升序 console.log(arr.sort(function(x,y){ return x-y; })) //打印结果:
阅读全文
posted @ 2017-07-11 10:07 萌新ol
阅读(107)
评论(0)
推荐(0)