摘要: window.onresize = function () {。。。。。}jquery $(window).resize(function) 阅读全文
posted @ 2016-08-18 15:46 太菜 阅读(3428) 评论(0) 推荐(0) 编辑
摘要: .ParentDIV{ display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: 阅读全文
posted @ 2016-08-18 11:40 太菜 阅读(642) 评论(0) 推荐(0) 编辑
摘要: $(select).is(":hidden") 返回 true/false 阅读全文
posted @ 2016-08-17 14:25 太菜 阅读(94) 评论(0) 推荐(0) 编辑
摘要: $inArray(val,arr)注意val类型和arr中的是否一致 如1 和"1" 就会返回-1 阅读全文
posted @ 2016-08-17 14:22 太菜 阅读(618) 评论(0) 推荐(0) 编辑
摘要: window.location.href=url 阅读全文
posted @ 2016-08-15 12:52 太菜 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 正则中 比如 var reg = "/^[0-9]$/" 会报 reg.test is not a function 如果 var reg = /^[0-9]$/ 就不会有错 因为 这才是正则 正确的表达式 阅读全文
posted @ 2016-08-12 10:40 太菜 阅读(423) 评论(0) 推荐(0) 编辑
摘要: 在ie中,button默认的type是button,而其他浏览器和W3C标准中button默认的属性都是submit 阅读全文
posted @ 2016-08-12 10:05 太菜 阅读(1285) 评论(0) 推荐(0) 编辑