("Passport", function (value, Element) {
return this.optional (Element) | | CheckNumber (value);
"Please enter your Passport number correctly");
Mobile phone number Verification
JQuery.validator.addMethod ("IsMobile", function (value, Element) {
var length = Value.length;
var mobile =/^ ((13[0-9]{1}) | ( 15[0-9]{1})) +\d{8}) $/;
return this.optional (El
Enter 13875998850Output valid Contact method
Input 0136986+9557There is a problem with the output contact mode?function Funcphone ($STR)//Phone number regular expression test{Return (Preg_match (/^ (d{3)) | ( d{3}-))? ((0d{2,3}) |0d{2,3}-)? [1-9]d{6,8}$/, $str)] true:false;}function Funcmtel ($STR)//mobile
1, open our mobile phone, click on the Phone QQ login page, enter the Q number and password, and then click Login.
2, after landing successfully, we can see in the landing page and friends chat record, in the lower part we can see the message, contact and dynamic three options. Click on the
code: (1) Call the Java method when you click the text box to bring up the system contact (how Js calls the Java method in the following Js Code)// AddJavascriptInterface () method for interacting with a webpageBrowser. addJavascriptInterface (new Object (){@ SuppressWarnings ("unused ")Public void getContacts (){Intent i1 = new Intent (Intent. ACTION_PICK,Android. provider. Contacts. People. CONTENT_URI );StartActivityForResult (i1, CODE_PHONEBOOK )
Note: If the number in the blacklist tries to contact you, you will not receive a notification, but the call will be recorded in the call log.1. Under the Samsung mobile phone Galaxy J7 (2016) standby page, click on the "phone" effect as follows.2. Click on the "more" option, this in the upper right corner we click on
Verify that the account is validVerification rules: a combination of letters, numbers, and underscores. It must start with a letter and contain 4-16 characters.
FunctionCheckuser (STR ){VaRRe=/^ [A-Za-Z] \ W {3, 15} $/;If(Re. Test (STR) {alert ("Correct");}Else{Alert ("Error") ;}} Checkuser ("jiade_cnblogs");//Call
Verify mobile phone numberVerification rules: 11-digit number, starting with 1.
Funct
Information Age, now basically everyone has a mobile phone, in reality, you may receive a relative's text message or phone call is to show "family" name, but you carefully look at the number, this is not your friends and relatives mobile phone number, this is how it? Recentl
Obtain the iPhone user's mobile phone number. Use the following function to return the user's mobile phone number: extern nsstring * ctsettingcopymyphonenumber (). Then call the function. Because this function is included in coretelephony, it can only be used in unofficial iPhone sdks.
Use the following function to ret
1. The data stored in the database layout to the phone interface, the operation please see http://blog.csdn.net/xia09222826/article/details/286606532. The three effects show the following effects:1) Custom Effects2) Single-radio effect3) Multi-selection effect3. Tap a contact to make a call or send a text message (for example, a custom effect)1) Effect view (e.g. click on the
The code for reading the names and phone numbers of all contacts on the internet is as follows:
ContentResolver cr = getContentResolver ();
Cursor cursor = cr. query (ContactsContract. Contacts. CONTENT_URI, null );
While (cursor. moveToNext ())
{
// Obtain the contact name
Int nameFieldColumnIndex = cursor. getColumnIndex (PhoneLookup. DISPLAY_NAME );
String name = cursor. getString (nameFieldColumnIndex )
I recently started to learn about Android, mainly focusing on the secrets of Android Application Development. In chapter 3rd, example_03_02 is an example of reading the name and phone number of contacts in the address book. However, due to API 2.0, each contact can have multiple phone numbers (such as mobile phones, re
In my daily text message program, you can click the select contact button to display the contact selection page. After you click Select contact, the mobile phone number of the contact is added to a text box. For the introduction a
.test (mobile) my = true;If (reg1.test (mobile) my = true;If (reg2.test (mobile) my = true;If (reg3.test (mobile) my = true;If (! My ){Document. form. UserMobile. value = '';Alert ('Sorry, the phone number or PHS number you entered is incorrect. ');Document. form. UserMobile. focus ();Return false;}Return true;}}
Description
The test method checks whether a mode
ArticleDirectory
Obtain the home location information of the mobile phone number
Obtain the current service status
Obtain the home location information of the mobile phone number
Obtain the current service status
1. form-based (open the complete page)
2. form-based (opening a small window)
3.
(!my) {
Document.form.usermobile.value= ';
Alert (' Sorry, you have entered the phone or PHS number is wrong. ');
Document.form.UserMobile.focus ();
return false;
}
return true;
}
}
DescriptionThe test method checks whether a pattern exists in the string, returns True if it exists, or returns false.
Regular expression section:\d represents a number
The effect diagram looks like this:
First of all, let's say to realize Android jump to the Address Book realization idea:
1. Click to jump to the Address Book interface
2. Get Address Book name and cell phone number
3. Callback display name and cell phone number
1 first jump to the Address Book interface
SMS:
1) through "Mobile phone check code + payment password" modified;
2 after the use of mobile phone scan two-dimensional code, please immediately login to pay treasure wallet complete confirmation;
3 Login to pay the wallet, input 6-digit mobile phone payment password, click "Confirm";
4 computer-side two-dimensional co
(!my) {
Document.form.usermobile.value= ';
Alert (' Sorry, you have entered the phone or PHS number is wrong. ');
Document.form.UserMobile.focus ();
return false;
}
return true;
}
}
Description
The test method checks whether a pattern exists in the string, returns True if it exists, or returns false.
Regular expression section:
\d represents a number
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.