标签:
alert("12345678用正则把数字用逗号分开:"+"12345678".replace(/(-?\d+)(\d{3})/,"$1,$2"));
alert("test@126.com用正则分隔:"+‘test@126.com‘.replace(/(.+)(@)(.*)/,"$3===$2===$1"));
alert("手机号判断:"+/1[3-9]\d{9}/.test(13136113809));
标签:
原文地址:http://www.cnblogs.com/log8/p/4303340.html