05 2020 档案
摘要:window.open(http://wwww.oufens.com,"","width=200,height=200")
阅读全文
摘要:简介 有的页面在向下滚动的时候,有些元素会产生细小的动画效果。虽然动画比较小,但却能吸引你的注意。比如刚刚发布的 iPhone 6 的页面(查看)。如果你希望你的页面也更加有趣,那么你可以试试 WOW.js。 WOW.js 依赖animate.css ,所以它支持 animate.css 多达 60
阅读全文
摘要:1 ::-webkit-input-placeholder { /* WebKit browsers */ 2 color: #999; } 3 :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ 4 color: #999; } 5 ::-moz-p
阅读全文
摘要:$(document).ready(function(){}).keydown(function (e) { if (e.which 27){ //自定义逻辑 } });
阅读全文
摘要:当内部元素全部使用浮动的时候,div不会自动适应高度 如下 .Professional_box{/*此时div不会自动适应高度*/ width: 100%; height: auto; } 此时发现容器没有高度。 修改后 .Professional_box{ width: 100%; height:
阅读全文
摘要:/** * @return {boolean} */ function IsEmail(str) { var reg = /^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/; return reg.test(str); }
阅读全文
摘要:/** * @return {boolean} */ function IsCard(str) { var reg = /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; return reg.test(str); }
阅读全文
摘要:/** * @return {boolean} */ function IsAge(str) { var age = parseInt(str); let pattern = /^(([0-9]|[1-9][1-9]|1[0-7][0-9])(\\.[0-9]+)?|180)$/; return p
阅读全文
摘要:/** * @return {boolean} */ function IsSex(str) { var pattern = new RegExp("[/^男$|^女&/]"); return pattern.test(str); }
阅读全文
摘要:/** * @return {boolean} */ function Isphone(str) { var phone = parseInt(str); let pattern = /^[1][3,4,5,7,8][0-9]{9}$/; return pattern.test(phone); }
阅读全文
摘要:function stripscript(str){ var pattern = new RegExp("[`~!@#$^&*()=|{}':;',\\[\\].<>/?~!@#¥……&*()——|{}【】‘;:”“'。,、?]"); return pattern.test(str); }
阅读全文

浙公网安备 33010602011771号