This article describes how to use javascript to implement a simple Map. You can obtain, Judge, delete, and add a map.
The Code is as follows:
/** MAP object to implement the MAP function** Interface:* Size () gets the number of MAP elements*
These functions must be tested before they can be used. it is not guaranteed that all functions can be used. many good code functions can be found in phpcms, dedecms, and CMS. // ※Checkmoney ($ C_Money) checks whether the data is in the 99999.99
Then share a PHP write to get each search Spider crawl record code
Supported search engines are as follows
Records of Baidu,google,bing,yahoo,soso,sogou,yodao crawling sites can be recorded!
The PHP code is as follows
Copy CodeThe code is as
PHP universal detection function set? // [Warning]: Do not modify it without permission // else //------------------------------------------------------------------------------------------//-------------------------------------
Set of common PHP
Crawlers of major seo search engines will constantly access and capture the content of our site, which also consumes a certain amount of site traffic. Sometimes, they need to block some spiders from accessing our site. In fact, there are only a few
※checkmoney ($C _money) Check if the data is in 99999.99 format
※CHECKEMAILADDR ($C _mailaddr) to determine if a valid e-mail address
※CHECKWEBADDR ($C _weburl) to determine if it is a valid URL
※checkempty ($C _char) to determine if a string is
// 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
Copy codeThe Code is as follows: function IsValidYear (psYear)
{
Var sYear = new String (psYear );
If (psYear = null){Return false;}
If (isNaN (psYear) = true){Return false;}
If (sYear = ""){Return true;}
If (sYear. match (/[^ 0-9]/g )! =
The following is a code written in php to obtain crawling records of search spider.
The following search engines are supported:
Record the crawling websites of Baidu, Google, Bing, Yahoo, Soso, Sogou, and Yodao!
The php code is as follows:
Copy
PHP code to implement spider capture
SEO (Search engine Optimization), the Chinese translation of Search engine optimization, for the more popular network marketing in recent years, the main purpose is to increase the exposure of specific keywords
Today, there are brothers in the group that third-party libraries cannot afford it. To be honest, I think third-party libraries are more likely to succeed than 90% except for a handful of disgusting libraries.Most third-party libraries can still be
Copy Code code as follows:
function Isvalidyear (psyear)
{
var syear = new String (psyear);
if (psyear==null)
{
return false;
}
if (isNaN (psyear) ==true)
{
return false;
}
if (Syear = "")
{
return true;
}
if
Copy Code code as follows:
/*
* Map object, realize map function
*
Interface
* Size () Gets the number of map elements
* IsEmpty () to determine if the map is empty
* Clear () Delete all elements of map
* Put (key, value) to add
In the Learning Web page of the form validation, by the way to learn the regular expressionFound a relatively complete resources on the Internet, a little bit of typesetting
Copy Code code as follows:
Check whether it is a valid real
This article describes the JavaScript simple to achieve the verification of identity card key code, shared for everyone to refer to, the specific content as follows
var vcity={11: "Beijing", 12: "Tianjin", 13: "Hebei", 14: "Shanxi", 15:
How to use JavaScript to determine whether the date of entry is legal
function Isvalidyear (psyear){var syear = new String (psyear);
if (psyear==null){return false;}
if (isNaN (psyear) ==true){return false;}
if (Syear = ""){return true;}
if
?"Warning": please do not change without permission//----------------------------------------------------------------------//----------------------------------------------------------------------//"FileName": c_check.inc"Role": a set of common
Functional PHP Universal Detection function set to http://wb.josetech.com/userHome/4/jaxp/add-ons/news/13/20020828/51.html
Publish time: 2002-08-28 17:52:33 News Source:
?
"Warning": please do not change without permission
//------------------------
Hands-on teaching you to implement a backup restore of MySQL
Sample code with my familiar PHP, of course, you read and understand the ideas, I believe you can quickly use your familiar language to write out.
First, create a new Dbbackup class and
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.