摘要: <html><head><script>function $(e){return document.getElementById(e);}function go(){var reg=/^[1-9]{1}[0-9]{14}$|^[1-9]{1}[0-9]{16}([0-9]|[xX])$/;if(re 阅读全文
posted @ 2016-04-09 23:32 夜深人静123 阅读(307) 评论(0) 推荐(0)
摘要: javascript var patt1=new RegExp("hello","g");或new RegExp(/^\d+\w+\d+$/);字符串或pattern形式 patt1.test(str)用于检测字符串或固定的表达式 返回true或false; patt1.exec(str) 返回检测 阅读全文
posted @ 2016-04-09 22:45 夜深人静123 阅读(180) 评论(0) 推荐(0)