//手机 checkTelPone(phone){ var isPhone = /^(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,8}$/; var isMob=/(^1\d{2,3}-?\d{7,8}$)|(^1\d{10}$)/; if(isMob.test(phone)||isPhone.test(phone)){ return true; } else{ return false; } },
原文:https://www.cnblogs.com/ximenchuifa/p/14657176.html