Js verification mobile phone number function (from Ding ding map)

Source: Internet
Author: User
Tags smarty template

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.