This article recommends 10 powerful JavaScript plug-ins for charting graphics. Some of these plug-ins require the support of mainstream browsers, while others are integrated to work on different platforms and older browsers. Some tools are
Copies can be used: objects. createTextRange (). ExecCommand ("copy") command, you can use:
Window.clipboardData.setData ("text", source of content)
Here the source of the content such as to get text box ID for y text copy to the Clipboard, here
1. jquery Gets the parent page element code in the IFRAME page as follows:
$ ("#objid", parent.document)
2. jquery gets the element of an IFRAME child page on the parent page
The code is as follows:
$ ("#objid", Document.frames (' Iframename ').
callback function Principle:
I'm leaving now, I'll let you know.This is an asynchronous process, "I go" in the process (function execution), "You" can do anything, "to" (function completed) "Notify You" (callback) after the process
Example
When dealing with arrays, we sometimes need to sort the array, there are many ways to sort, but the best and quickest way is to use the sort method for fast sorting.
Let's take a look at an example:
The code is as follows
Copy Code
In my development work, I often encounter situations where it is necessary to determine whether a function is a JavaScript native function, and it is sometimes a necessity to know if the function is provided by the browser itself or by a third party,
One of the usual ways that webmasters used to let the user click on the ads to see the real content, the most use is to click on ads after the display download address, this function is very helpful to advertising revenue, but lost the user
The code is as follows
Copy Code
Url:
PHP detects URL address validity
The code is as follows
Copy Code
?function Is_url ($STR) {Return Preg_match ("/^http://[a-za-z0-9]+.[ a-za-z0-9]+[/=?%-&_~
People who write C or Java habits may find that JavaScript does not have the concept of namespaces, of course, if apes (such as write Js,php,python) do not have access to namespaces, they may not pay attention or attention to namespaces. Such a
This article provides you with several commonly used JavaScript tutorials e-mail Verification code Oh, all are streamlined and easy to understand the JS email verification program Oh, let's look at these examples.
JavaScript Tutorial e-mail address verification Program
Validateemail ()
Next we want to see the email address if the user input is true. This means that the input data
Must contain at least one @ symbol and one point (. )。 In addition, @ must
JavaScript Tutorial Phone number verification
The following check function, if the phone number is valid. At first we used the regular expression and the replace () method
To clear any interval character. Next, we use the isNaN () function to
Javascrip new Array
Create an array
There are several different ways to create an array. Creates an array of arrays to participate in () construct the old way.
JavaScript arrays are dynamic, and you can declare an array without constructing the
Tip: You can modify some of the code before running
native JavaScript effects: Expand/Shrink Menu native JavaScript effect: Expand/Shrink Menu jquery special effects jquery focus Diagram jquery tab jquery form
When Flash is placed in an HTML container, it often encounters communication problems between AS and JS, such AS whether JS can call variables and methods in AS, and whether AS can call variables and methods in JS. The answer is yes. With the
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service