Alibabacloud.com offers a wide variety of articles about lenovo mobile format code, easily find your lenovo mobile format code information here online.
This article introduces the use of jquery to verify the mailbox, verify the mobile phone number, the specific implementation of ideas and code as follows, interested friends can learn to
copy code code as follows:
//jquery Verify mailbox Function Checksubmitemail () { if ($ ("#email"). val () = "") {//$ ("#confirm
Example of source code for parsing GPS Data Format
With more and more built-in GPS Mobile Phones, more and more GPS-related applications, GPS is not only getting a latitude and longitude information, you can use GPS to develop more applications, such as location pictures, for example, the display of friend locations, such as tracking, etc. timesyncppc can use th
Original link: http://www.cnblogs.com/steed-zgf/archive/2012/02/03/2336984.html"-//W3C//DTD XHTML 1.0 transitional//en""Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">"Http://www.w3.org/1999/xhtml">"Text/javascript">var intervalobj;//Timer variable, control timevar count =5;//Interval function, 1 second executionvar Curcount;//Current number of seconds remainingfunction SendMessage () {Curcount =Count//Set the button effect to start the timer $ ("#btnSendCode"). attr ("Disabled","True"
Let's take a look at the match usage in jquery.
String.match (Regular)
It looks the same as JS.
The regular rules for the phone number and the email we'll see.
Cell phone number Regular: ^ (((13[0-9]{1}) |159|153) +d{8})
Email address Regular: w+ (-w+) | (. w+)) *@[a-za-z0-9]+ ((. | -) [a-za-z0-9]+] *. [A-za-z0-9]
Now let's look at an example
The code is as follows
Copy Code
HTTP_USER_AGENT is a global variable used to obtain information about the user's browser. We can use the value obtained by HTTP_USER_AGENT to determine whether the user is a mobile browser or a computer accessing the network. HTTP_USER_AGENT is a global variable used to obtain information about the user's browser. We can use the value obtained by HTTP_USER_AGENT to determine whether the user is a mobile bro
General inquiries about the contents of the cell phone should be very easy to save the JSON format, found Taobao's home to the Internet API, and the processing of JSON-related jar bag, do the phone attribution to the query function
Copy Code code as follows:
Package Com.think.java;
Import Java.io.BufferedReader;Import Java.io.InputStream;Import Jav
Determine whether the client is a mobile device
Determine whether the client is a mobile device
// Determine whether the mobile phone function is_mobile () {$ user_agent = $ _ SERVER ['http _ USER_AGENT ']; $ mobile_agents = Array ("240x320", "acer ", "ACO on", "acs-", "abacho", "ahong", "airness", "alcatel", "amoi", "android", "anywhereyougo.com ", "applewebkit
if ((/applewebkit.*mobile/i.test (navigator.useragent) | | | /midp| symbianos| nokia| Samsung| Lg| nec| tcl| alcatel| bird| dbtel| dopod| philips| haier| lenovo| mot-| nokia| sonyericsson| sie-| amoi| Zte/.test (navigator.useragent)) window.location.href.indexof ("mobile") JS detected if it is the mobile phone side t
{-webkit-text-size-adjust:100%;}4. How the mobile side clears the shadow in the input boxOn iOS, the input box defaults to an inner shadow, but cannot be cleared using Box-shadow, which can be turned off if no shadow is needed:input,textarea border : { 0 ; /*方法1*/ -webkit-appearance: none ; /*方法2*/ }5. Email address identificationOn Android (not iOS), the browser will automatically recognize a string that looks like an email address, whether you have
I will write a small program to use php to determine whether the terminal is a mobile phone or a computer to visit the website. if you are interested, refer to the following code. I hope to help you learn php:
The code is as follows:
Function check_wap (){
If (isset ($ _ SERVER ['http _ VIA ']) return true;
If (isset ($ _ SERVER ['http _ X_NOKIA_CONNECTION_MOD
Query the Phone firmware version (mobile phone model or type identifier) and Code of Nokia
On the dialing page, enter * #0000 #. after entering the # number, the Device Manager is displayed. For example, Nokia e72 of the US version is used, after entering "* #0000 #", the following mobile phone soft fix information is displayed:
Nokia e72 Device Manager
Software
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.