The first method:
In the user registration page Some requirements are more stringent, need to verify the identity card JS is legitimate, through this function strictly this system software, thus filtering to many water passengers. Here's how to
Self summary1. Set text box to enter only numbersOnkeyup= "This.value=this.value.replace (/[^\d]/g,") "//Replace onkeypress=" Keypressnumber () "Onafterpaste=" this.value= This.value.replace (/[^\d]/g, ') "onpaste=" return false; " Prohibit
Use MFC to implement OpenGL programming for mice who love shopping
1. Introduction to OpenGL
As we all know, OpenGL was originally used to develop high-quality image interfaces on their graphics workstation. But in recent years it has become an
// Check whether it is composed of digits[Code] function isDigit (s) {var patrn =/^ [0-9] {1, 20} $/; if(! Patrn.exe c (s) return false return true} [/code]
// Check Logon Name: You can enter only 5-20 strings starting with a letter, which can
Development process encountered in the input box of the page generally need to do some rules validation of the input box, where the common rules validation is organized, JS implementation of web-side input box rules validation, code:varVerify =
Class verify{
/**
* Verify user name
* @param string $value
* @param int $length
* @return Boolean
*/
public static function Isnames ($value, $minLen =2, $maxLen =20, $charset = ' all ') {
if (empty ($value))
Class verify{
/**
* Verify user name
* @param string $value
* @param int $length
* @return Boolean
*/
public static function Isnames ($value, $minLen =2, $maxLen =20, $charset = ' all ') {
if (empty ($value))
javascript| function
/**************************************************** Eo_jslib.js* JavaScript Regular expression test*******************************************************/
The checksum is all made up of numbersfunction IsDigit (s){var patrn=/^
Some common Javascript judgment functions are basic js knowledge. If you are interested in js, You can see 1. This is an DIV.
OuterHTML
InnerHTML
InnertText
2. Javascript Error
The Code is as follows:
W1 = 0;W1 + = Math. round (1333333.99*
Lists some common format-validated JS methods for querying.//Check if it is a numberfunctionCheckisinteger (str) {if(str = = ""){ return false; } if(Str.search (/^[0-9]+$/) ){ return false; } Else{ return true; }
In order to remember the whereabouts of Baidu spider, I wrote the following PHP functions: one is to judge the spider name, the other is to remember the spider to the file, you can take a look
The code is as follows:
Function write_naps_bot (){$
1. Regular expression basic syntaxTwo special symbols ' ^ ' and ' $ '. Their role is to indicate the beginning and end of a string, respectively. Examples are as follows:"^the": denotes all strings starting with "the" ("There", "the Cat", etc.);"Of
The regular expression validation password feature is often used in the project, but a lot of friends still do not use the password regular expression to verify, this article small series for everyone to organize the PHP password verification
So below share a PHP write to get each search Spider crawl record code
Support Search engine as follows
Can record the Baidu,google,bing,yahoo,soso,sogou,yodao crawl website record!
The PHP code is as follows
Copy Code code as follows:
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.