2020年最新判斷手機號的JS正則驗證,加了199手機號段的驗證。用戶注冊時候用。
var Mobilereg=/^[1][3,4,5,7,8,9][0-9]{9}$/; if (!Mobilereg.test($(this).val())) { $(this).addClass("Error"); return false; }else{ $(this).removeClass("Error"); IsUserID = 1; }
原文地址:http://www.h-ipasbs.com/library/202010/51.html(張家口導航-睿兒知識庫)