Two months ago, youNeverI have heard of JSON
You heard this word a month ago but didn't pay attention to it.
A week ago, you found that this word was mentioned many times and started to think,That's right... There are some junk things to learn.
However, when the script is relatively long, you need to copy a large segment to the address bar, it looks very bad, and it is not easy to modify the script. Therefore, you should first write the script in a separate file, and then dynamically load
Copy codeThe Code is as follows://// Usage// $ (Text field selector). insertContent ("inserted content ");// $ (Text field selector ). insertContent ("inserted content", numeric value); // select the boundary between the two sides of the inserted
Preparations:Download the dtree.zipfile from http://www.jb51.net/jiaoben/31974.html.Dtree.zip package introduction:Dtree is a simple tree menu component written in JavaScript. It is currently free and open-source.Currently, there are many tree menu
There are two files, a.html and B .html, that is, the following code. B .html is only used to verify that a jump page is passed, and no code is written.Because a.html is a relative component, the program can run normally, and B .html are placed in
In Javascript, I believe everyone has tried to use getElementsByTagName and childNodes to traverse nodes. However, getElementsByTagName is obviously inferior to childNodes for complex DOM structure traversal, because childNodes can better process
First of all, some people say that this is a repetitive task, but I don't think it is. If you are a project, you cannot always take other people's things. It is not a good idea to take things, of course, if you want to make it easy, you have nothing
I want to make improvements when I have nothing to do during the holidays. There are not many changes, mainly including the following three points:The complete callback can be a Function Array after jquery1.5 and called in the array order.If the
Make a simple record here to prevent you from forgetting it.The following are the main functions for automatically clicking and opening the link. The function is not described in detail, preventing too many people from abusing the link. a thoughtful
Let's start with some basic knowledge:Syntax: $. ajax ({option })Option indicates the parameter. In the form of key/value.Common parameters: type: post/get.Url: the address where the request is sent.Data: {object: object} the data sent to the server,
I. Method list:1. jQuery. extend (Object); // jQuery Extension Method2. jQuery. fn. extent (Object); // jQuery selected Object Extension MethodIi. Call example:1. An example of jQuery extension method is as follows:Copy codeThe Code is as
Write down jquery's carriage return event. The Code is as follows:Global:Copy codeThe Code is as follows:$ (Function (){Document. onkeydown = function (e ){Var ev = document. all? Window. event: e;If (ev. keyCode = 13 ){$ ('# FormId). submit (); //
The navigation menu should be simple enough to allow users to quickly understand it, but it should also contain some necessary elements to guide users to browse the entire website-incorporate some creative and beautiful designs.
Recommended70
FirstGlobal variable class2type = {};Rdigit = // \ d/, // regular expression to determine whether it is a numberToString = Object. prototype. toString;Use jQuery. each to define the attributes and values of class2type:Copy codeThe Code is as follows:
Example:Copy codeThe Code is as follows: Running result:NOTE: If there are multiple parameters, you can use arrays, such as regex: [, 5]. You can use subscript to access params [0] in the method.Some extension verification methods provided by
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