var pattern=/(^(([0\+]\d{2,3}-)?(0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$)|(^0{0,1}1[3|4|5|6|7|8|9][0-9]{9}$)/;
if(pattern.test(val)) { return true; }else{ return false; }
转载于:https://www.cnblogs.com/hgj123/p/5817548.html