Js verifies the mobile phone number function (from Ding ding map). The specific code is as follows:
/* Dingding map check mobile phone number Method */function is_mobile (value) {var pattern =/^ 1 [358] [0123456789] \ d {8} $/; if (! Pattern. test (value) {return false;} return true ;}
Articles you may be interested in
- Use JavaScript to verify the regular expression of the mobile phone number
- Example of mobile phone number and email address verification in js
- PHP function for verifying that the ID card number is correct
- Php extracts the birthday date from the ID card number and verifies whether it is a minor.
- Use php functions in the smarty template and how to use multiple functions for a variable in the smarty Template
- Comparison and Analysis of string encoding functions escape, encodeURI, and encodeURIComponent in javascript
- How to optimize servers, static databases, and load balancing for high-traffic websites
- Php verification code generation function