Use the jquery. validate custom method to implement logic verification of "Enter at least one mobile phone number or fixed phone number", jqueryvalidate
In recent project development, the following requirement is met: "Enter at least one
A few years ago we began to add a mobile version of the normal computer version of the website, when we looked at some information, which said that in many cases, the phone browser can identify the Web page and automatically add links, but can also turn off this feature and control whether the number is Added link. In the past two years, when we add
This article has written a common function-the mobile phone app register or bind the handset number to obtain the authentication code function, namely the short message authentication function
The specific effect is that you fill in the Registration interface cell phone number
Use JAVA code to obtain some basic information about the mobile phone (the local number, SDK version, system version, and mobile phone model) and javasdk
The Code is as follows:
Package com. zzw. getPhoneInfos; import android. app. activity; import android. content. context;
The following are some regular expressions for js verification phone numbers. I have collected them from the Internet, but they are all excellent products. They are specialized in mobile phone numbers and phone numbers.
Function checkPhone (phone)
{
// Verify the
Android uses an http request to query the mobile phone number of the specified location and android phone number
Local Data Source
Http://webservice.webxml.com.cn/WebServices/MobileCodeWS.asmx
Webxml websites also support other request methods, such as SOAP.
Simple Interface
The JS Code randomly generates the name, mobile phone number, ID card number, bank card number, and js bank card number.
During development and testing, you often need to enter the name, mobil
Jquery implements the number selection method for mobile phone numbers. jquery implements mobile phone numbers
This example describes how to select a mobile phone
When your phone needs to change the new number, or when you travel abroad do not need to carry domestic mobile phone, your phone can be placed at home, when someone calls automatically hang up, if the other side is a mobile
Android uses an http request to query the mobile phone number of the specified location and android phone number
Local Data Source
Http://webservice.webxml.com.cn/WebServices/MobileCodeWS.asmx
Webxml websites also support other request methods, such as SOAP.
Simple Interface
Old style, no more nonsense to say, directly to everyone paste Java code.
The code is as follows:
Package Com.zzw.getPhoneInfos;
Import android.app.Activity;
Import Android.content.Context;
Import Android.os.Build;
Import Android.os.Bundle;
Import Android.telephony.TelephonyManager;
Import Android.util.Log; public class Mainactivity extends activity {@Override protected void onCreate (Bundle savedinstancestate) {super.
OnCreate (savedinstancestate);
Setcontentview (R.layout.activit
/********************Function Name: Istelephonefunction function: fixed, mobile phone number check function, return True, reverse, return falsefunction parameters: obj, number to be checkedCheck rule:(1) Number, "(", ")" and "-"(2) The p
1. As shown in the following figure we open "micro-mail" on the phone and click "I" To find "settings" and then click "Account and Security" to enter, as shown in the following figure.
2. Then we open the micro-letter "account and security" we will see a "phone number" We click on it can change the number of
function Checktel () {/*Verify the phone number verification rule: Area code + number, area code starts with 0, 3-bit or 4-digit number consists of 7-bit or 8-digit number between the area code and the number can be no connector,
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.