How to implement one-click direct call by phone number on the webpage _ example and one-click direct call
How to implement one-click direct call by phone number on the webpage
Problem:
When you open a website through a mobile phone, you need to click the
Preface Welcome to share and recommend useful code segments ~~Statement You are welcome to repost, but please keep the original source of the article:CSDN:Http://www.csdn.net O Mo Li in the rainy season:Http://blog.csdn.net/luckkof
Body
Some SIM cards are not preset with the VoiceMail number at the factory, but the operator requires that the preset VM number be read from the mobile
Add 150,153,156,158,159,157,188,189
The regular expression is as follows: ^ (13 [0-9] | 15 [0 | 3 | 6 | 7 | 8 | 9] | 18 [8 | 9]) \ D {8 }$ // check whether it is composed of digits
Function isdigit (s)
{
VaR patrn =/^ [0-9] {1, 20} $ /;
If (! Patrn.exe C (s) return false
Return true
}
// Check Logon Name: You can enter only 5-20 strings starting with a letter, which can contain numbers, "_", and ".".Function isregisterusername (s){VaR patrn =/^ [A-Za-Z] {1} ([a-zA-Z0-9] | [. _]) {} $ /;If (! Pa
Mobile phone to visit the website, click the phone number direct call:
This way Symbian, Android and iphone all support it.
After testing this dialing code
This way Symbian, Android and iphone all support it.
Other methods:
Note: 158xxxxxxxx is the
entered email address // var emailreg1 =/^ \ w + ([-+.] \ w +) * @ ("@") \ w + ([-.] \ w + )*\. \ w + ([-.] \ w +) * $/; // This can also be var emailreg =/^ \ w + (-\ w +) | (\. \ w +) * \ @ ("@") [A-Za-z0-9] + ((\. |-) [A-Za-z0-9] + )*\. [A-Za-z0-9] + $/; if (emailreg. test (emailvalue )){}
ID card:
Var userCardvalue = $ ("# UserIDCard "). val (); // obtain the input ID card var userCardreg =/(^ \ d {15} $) | (^ \ d {18} $) | (^ \ d {17} (\ d | X | x) $)/; var taiwanreg =/^ [A-Z] [0-9] {9} $
To the users of nail nails software to detailed analysis of the release of the binding mobile phone number tutorial.
Tutorial Sharing:
At present nails do not support the number of binding mobile phone, but the confusion will not have any impact on your day-to-
Completed a simple and useful WAP site--wap version of the mobile phone number location query
Address: Http://hikey.net/wap
With WAP-enabled mobile phone view, IE does not support
If your phone does not support WAP or if you do n
the encryption algorithm (undefined if the user does not agree to the authorization ).
EncryptedData: Encrypted data of user information (undefined is returned if the user does not agree to the authorization)
GetPhoneNumber: function (e) {console. log (e. detail. errMsg) console. log (e. detail. iv) console. log (e. detail. encryptedData) if (e. detail. errMsg = 'getphonenumber: fail user deny') {wx. showModal ({title: 'hprompt ', showCancel: false, content: 'unauthorized', success: function (
Ecshop mobile phone number or email user name can login methodEcshop Tutorial/Ecshop Tutorial Net (www.ecshop119.com) 2013-06-30A lot of people are looking for support ecshop user name, mailbox or hand number login plug-in, the following about how to implement user name, mailbox or mobile
AngularJS Form Verification mobile phone number instance (not required), angularjs is required
The Code is as follows:
Regular Expression:
1. null match: ^ $
2. Matching mobile phone number: ^ (\ + 86) | (86 ))? 1 [34578] \ d {9}) $
3. display the control prompt: ng-show = "myForm.
Startquery function of Callerinfoasyncquery.
Frameworks/base/telephony/java/com/android/internal/callerinfoasyncquery.java/** * Factory to start the Quer
Y based on a number. * * Note:if The number contains a "@" character we treat it * as a SIP address, and look it up directly in the Data
Table * Rather than using the Phonelookup table.
* Todo:but Eventually we should expose two separate, one
than the mingetty written in the above lines. Mingetty is the terminal program of RedHat. It does not support modem connection. One of my colleagues typed mgetty into mingetty by mistake, but linux didn't answer the call. In addition, the number "7" at the beginning of this line is not certain. As long as it is not duplicated in the file, it is unique. It can be two characters or numbers.
After modificati
Use a regular expression to determine whether a mobile phone number is used (simple and practical ).
The following code is used to determine whether the expression is a mobile phone number. The specific code is as follows:
Public static boolean isMobileNO (String mobile) {Pattern p = Pattern. compile ("^ (13 [0-9]) |
Intro
When doing the project, there are some sensitive information on the page, you need to use "*" to hide some of the more important information, so you intend to write a common method.
Let's do it!
Method 1: Specify the number of left and right characters
Method 1.1 The number of * in the middle and the actual length of
Method 1.2: The number of
The example of this article for you to share a special character replacement phone number of a part of the method, iOS use-number replacement phone number in the middle four, for your reference, the specific contents are as follows
One, the effect chart
Second, the Code
MySQL uses the bigint field to store the phone 10-digit number, incredibly truncated.
How do I use the bigint field to store my phone number every time. No matter what the number of 11 digits, all only show 4294967295
------Solution--------------------
Echo Pow (2, 32); 42
The thinkphp mobile phone number and user name are both logged on, thinkphp login Login? /A> Please try again later.
For more information, see the code:
// When registering, the user name cannot be a pure number, so that the user name of one person cannot be the same as the mobile phone
The following small series for you to share a ajax+php implementation of no-refresh verification of mobile phone number instances, with a good reference value, I hope to be helpful to everyone. Let's take a look at it with a little knitting.
A simple no-refresh verification phone number is registered:
Client implemen
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.