Nonsense not much to say directly on the code
HTML code:
JS code:
The above is a small set of JS to introduce the realization of form verification function (verify the existence of mobile phone number, verification code countdown), I hope to help you
The code is as follows
Copy Code
function Funcmtel ($STR)//mobile number Regular expression test{Return (Preg_match ("/(?: 13d{1}|15[03689]) d{8}$/", $str))? True:false;}
Test
18678785887
Return to
False
Cause analysis, see the discovery that the above is only validated with 13, 15, the beginning of the natural 18 is not available
After modification
The
in quotation marks)The code is as follows:var v = localstorage.getitem (' n ')? Localstorage.getitem (' n '): ""; If the data with the name n is present, it is read out and given the variable v.Localstorage.setitem (' n ', v); Writes data with a name of N and a value of VLocalstorage.removeitem (' n '); Delete data with name N9. Use special Links:If you turn off auto-recognition and want some phone numbers
To determine whether a website is accessed by a mobile user or a PC user, we only need to obtain the user's HTTP_USER_AGENT. I first introduced a general Mobile_Detect, the following two examples are self-written and hope to help you. php... to determine whether a website is accessed by a mobile user or a PC user, we only need to obtain the user's HTTP_USER_AGENT. I first introduced a general Mobile_Detect, the following two examples are self-written and hope to help you.
The php
This example needs to verify the content: E-mail address, URL address, telephone number, ZIP code, verification method for everyone to share for reference, the specific content as follows
1. Verification of e-mail address
2, the URL address of the check
3. Telephone number
4, the verification of the ZIP code
I hope this article will help you learn PHP programming.
The above describes the PHP r
This article mainly introduces the code for sending an article to a mobile phone based on jquery. it is very simple and practical. if you need it, you can refer to the code you wrote when you started the project some time ago, record and share it with you
The code is as follows:
First, for "multi-terminal adaptation" "App internationalization"Assume that the URL for the previous page file is: http://www.XXX.com/app-install/terminal-language.htmlThen you can generate a two-dimensional code through the URL , scan the QR code, different terminal, language version of the specific, by the terminal-language.html automatically identify and jump.Second, for "multi-channel adaptation"three
Often there are some children who like to develop tinker shoes ask us, WPS Office Mobile version provides a calling interface, want to use a call command in Android, directlyCall the WPS Mobile version to open the specified doc file without popping up an optional list of programs (if the user has multiple document viewing software), the user chooses to useWhich program opens Doc. Want to omit the process of selecting a program, directly call the mobile version of WPS Open.Bonnie to provide you w
Objective
This article is to introduce the use of Python crawling mobile phone ownership information, the article gives a detailed sample code, I believe that the understanding and learning of everyone is helpful, the following for the Python code, relatively simple for reference.
Sample code
#-*-coding:utf-8-*-
When the small partner does the PC website, whether has encountered the registration user needs to use the SMS verification function? Or retrieve the password, and verify the user's information and so on functions! Today, think of PHP for everyone to bring thinkphp integrated Ali Big Fish SMS verification function!First of all, we have to understand what the principle of text messaging, in fact, we use the third party is a communication of the SMS protocol, and then we randomly generated a verif
Paip. Crack website mobile phone Verification Code
Author attilax, email: 1466519819@qq.com
Method 1: normal text message interface uplink mode (this method is available for 30% websites)--------------------This method is mainly applicable when the website does not strictly verify the mobile phone number (only when the front-end JS verifies the mobile
if ((document.regform.u_telphone1.value.length==0) | |! Checkifnumber (Document.regform.u_telphone1.value)) {
Alert ("Hint: the phone must be filled out!") ");
Document.regform.u_telphone1.focus ();
return false;
}
if ((document.regform.u_telphone2.value.length==0) | |! Checkifnumber (Document.regform.u_telphone2.value)) {
Alert ("Hint: the phone must be filled out!") ");
Document.regform.u_telphone2
This example describes the jquery phone dial interface effect. Share to everyone for your reference. Specifically as follows:This is based on the implementation of jquery Mobile phone dial interface effect source code, is a personalized phone page version of Mobile phones dial interface style codes. Click the number of
I didn't know much about this before, and I always thought it was complicated. Until the first two days the company asked to do this function. After doing it, I realized that this is something that can be achieved by a POST request. Now to share with you, there are shortcomings and please advise. Nonsense not much to say directly on the code.1. First obtain a random digital verification code (here is 6 digi
interface, how to do?Add permission permissions in Androidmanifest.xml: Uses-permissionandroid:name = "Android.permission.DISABLE_KEYGUARD" />// Keyboard lock Manager Object Keyguardmanager km = (Keyguardmanager) Getsystemservice (context.keyguard_service); // here the parameter "kale" as the tag in Logcat when debugging Keyguardlock KL = Km.newkeyguardlock ("kale"); if (Km.inkeyguardrestrictedinputmode ()) { // unlock keyboard Kl.disa
This article will mainly share with you the js Code for mobile phone tablets and other mobile terminals to adapt to jump URLs. For more information, see
The Code is as follows:
This article mainly for you to share a mobile phone registration to send a verification code countdown to a simple example. Has a very good reference value, along with the small series to see it, hope to help you, hope to help everyone.
As shown below:
() Here is the click of input to send the verification code
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.