China's mainland operators of mobile phone number standard format is: Country code + mobile phone number, such as: 8613912345678. Features such as the following:1. length 13;2. Begin with 86 of the country code;3. Each digit of the mobile phone
I created a list of contacts using Excel. But I found a problem with the display of a phone number leading zero. When you enter "090", the result becomes "90". Why?
Put
this picture away.
expand this picture
If no leading zeros are displayed, the result is not a correct phone number.
Copy codeThe Code is as follows:Function checkMobile (){Var sMobile = document. mobileform. mobile. valueIf (! (/^ 1 [3 | 4 | 5 | 8] [0-9] \ d {4, 8} $/. test (sMobile ))){Alert ("the first seven digits of a complete 11-digit mobile phone number or a correct mobile phone number ");Document. mobileform. mobile. focus ()
The cell phone number attribution query code is a PHP open source phone Attribution query system, the system does not rely on large databases such as MySQL, but rely on text, because, generally a mobile phone number, in the query system, the decision is the first 7 bits
Cell
Copy the code as follows:
1. php mobile phone number verification (supporting local query and encoding UTF8) _ PHP Tutorial
Description: php verifies the mobile phone number (which can be found by region and encoded as UTF8 ). The code is as follows :? Php // mobile phone
Mobile phone numbers are not all available. Only a part of it can be obtained.This is because the mobile operator does not write data from the mobile phone number to the SIM card. The SIM card has only a unique number. For network and equipment identification that is the IMSI numbe
Use JavaScript to verify the regular expression of the mobile phone number. The Code is as follows:
Function checkMobile () {var phone = document. getElementById ("phone"). value; var reg0 =/^ 13 \ d {5, 9} $/; // 130--139. At least 7-bit var reg1 =/^ 153 \ d {8} $/; // China Unicom 153. At least 7 bits var reg2 =/^ 1
1, Taobao
API Address: http://tcc.taobao.com/cc/json/mobile_tel_segment.htm?tel= mobile phone number
Parameters:
Tel: mobile phone number
Back: JSON
2, Pat
API Address: http://virtual.paipai.com/extinfo/GetMobileProductInfo?mobile= mobile phone
A simple demo, from aggregation data to apply for mobile phone number attribution to the data interface;
Enter the query number in the EditText, get the number and use HttpURLConnection to get the JSON data in the child thread, then parse;
After data acquisition is complete, update the UI in the main thread to show t
This article is also a collection of a large number of JS verification of mobile phone number code, all from the network, if you are not very understanding, you can directly take us now mobile phone number verification code to use OH.
JS Verify mobile
PHP allows you to share user-defined functions hidden by asterisks (*) with four digits in the middle of a mobile phone number.
Php shields four phone numbers in the middle:
Copy codeThe Code is as follows:Method 1:Function hidtel ($ phone ){$ IsWhat = preg_match ('/(0 [0-9] {2, 3} [\-]? [2-9] [0-9] {6, 7} [\-]? [0-9]?
1. Change the binding mobile phone just click on the microblogging page "account" into the Account Settings page, click on the left side of the "Account Security" and click "Binding Mobile Phone" to expand the option;
2. Click on "Change Number" (Warm tip: If there is no "change number" and "Unbind" button, ind
Copy the code code as follows:
1. PHP Verification Mobile Phone number (support attribution to query and code for UTF8) _php tutorial
Introduction: PHP Verification mobile phone number (support attribution to query and encoded as UTF8). Copy the code as follows:? PHP//Mobile numbe
12306 Mobile phone number is registered
Have a friend to 12306 website Registration mobile phone number is we will encounter 12306 mobile phone number is registered problem, then how to deal with it.
The specific methods are a
Jquery practice case -- verify the mobile phone number and jquery case
If you want to verify the mobile phone number, you need to know the number segment of the mobile phone number.
//
When you contact this tutorial, the method used to select a contact is to read the contact from the database, and then display it with listview. After selecting the contact, the mobile phone number is returned,
In this way, when you click to select a contact, it takes time to load and the displayed contacts do not seem to be full,
In short, it is not good. You do not have to process the interface by calling
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.