2017年12月21日
摘要: 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日
摘要: 有很多下拉菜单,点击其他地方会隐藏这个下拉菜单 实现方法 $("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)