2015年6月11日
摘要: 整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$只能输入数字:"^[0-9]*$"。只能输入n位的数字:"^\d{n}$"。只能输入至少n位的数字:"^\d{n,}$"。只能输入m~n位的数字:。"^\d{m,n}$"只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"... 阅读全文
posted @ 2015-06-11 09:40 IT-工人 阅读(113) 评论(0) 推荐(0)
  2015年5月18日
摘要: function getStyle(obj,attr){ if(obj.currentStyle){ return obj.currentStyle[attr] } else{ return getComputedStyle(obj,false)[attr] }}注:obj.currentSty... 阅读全文
posted @ 2015-05-18 15:40 IT-工人 阅读(107) 评论(0) 推荐(0)