Summary of the methods for verifying mobile phone numbers and email addresses using javascript. Although there are many such examples on the Internet, it is always the best to write the code by yourself. The following two examples are prepared by yourself, share with you.
// Function is_mobile (value) {var pattern =/^ 1 [358] [0123456789] \ d {8 }$/; if (! Pattern. test (value) {return false;} return true ;}
// Verify email correctness using javascr
If your notes are synchronized successfully, this may be the result of your login to the wrong account.
You can try using micro-blog mail directly or click on a third party authorization to log in, reminding you that the two landing methods corresponding to the different accounts, can not be associated.
If you still do not, you can successfully log in and commonly used equipment information sent to us, as follows:
(1) Iphone/ipad
You can send the wireless LAN
The following program implements the following three functions:
1. synchronous listening for changes in text input boxes. By default, the following three methods are inherited;2. Use regular expressions to determine whether the entered phone number is legal;3. After the activity is displayed for one second, the keyboard jumps out;
Package COM. my;
There is al
How can I display the number of messages dynamically by using the desktop App icon (similar to the QQ icon on a mobile phone )?, App icon
Apps on mobile phones, such as QQ and others, can dynamically display the number of messages on the icons (up to 99). Have you ever wondered how these effects are achieved? Can traditional applications developed on the desktop
Obtain the current network type (2g, 3g, 4g, wifi), mobile phone model, and version number of Android.Obtain the mobile phone model: android. OS. build. MODEL: android. OS. build. VERSION. the code used to obtain the current network type of the mobile phone is as follows: This is a tool class, which can be saved for ea
today, get up and look at the once downloaded N-more code, casually picked a simple look, look at the name (get mobile phone number, get mobile phone operator) Very interesting to learn a bit. and then found that only can get carrier information, unable to get the number, Baidu Go
Verify that your account is legitimateValidation rules: Letters, numbers, underscores, letters beginning with 4-16 digits.str=$ ("#zhanghao"). Val ();Re =/^[a-za-z]\w{3,15}$/; If(re. Test(str)) {alert ("correct");} else{alert ("error");------------------------------Verify your phone numberValidation rule: 11 digits, starting with 1.var tel=$ ("#tel"). Val ();if (tel = = "") {Alert (' Please fill in your contact information ');Return}Else if (!/^1\d{
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.