Note: The element name attribute on the page and the name referenced by JavaScript must be case-sensitive. Otherwise, an error message indicating that the referenced element is null or not an object is prompted.
1. Window object----------------------
Bind an event to the attribute of an element, and an inline event processing function (for example, & lt; h1onclick & quot; alert (this); & quot ;... & gt ;... & lt; h1 & gt;), The Inline event handler has a special scope chain, and the
Jquery + ajax sends request data to the background every second and then returns the page (including the method for executing the jquery page after loading)
The Code is as follows:
XMLHTTP garbled solution (UTF8, GB2312 encoding and decoding) (included to solve the problem that DHTMLX cannot use Chinese) on the Data sender side, use the javascript escape Function to convert all Chinese characters into English encoding and save
Each language has a special place. For JavaScript, using var can declare any type of variables. This script language looks very simple, however, to write elegant code, you need to constantly accumulate experience. This article lists seven details
In IE6, position is used to cause page deformation and affect user experience. search can be implemented through js. :
Solution:
1. When scaling the form, the blank width on the left of the content is obtained first.
$ ("# Nav"). offset ().
Recently, when using the Dialog control of jQueryUI, we found that if a form is placed in this control, all forms cannot be submitted normally, as shown below:
1. The submit button is invalid. No response is returned after you click the button.
2.
Today, I want to talk about how to use jquery's syntax and components dialog and Autocomplete to create the sender operation function of the QQ mailbox. I think this is too simple to leave. Not very clear can first look at the QQ mail operation, or
In JavaScript, whether it is a definition class or function, many friends want to write code more professional and more convenient to expand, so you can refer to this article, it is best to summarize, we suggest you add to favorites. When it comes
In a WEB project, there is a special text box. The customer needs to be realistic. Before entering data in that text box, use an asterisk (*) indicates the information to be entered (the number of data digits to be entered in the text box is known.
Create a parent-level event on the subpage (& lt; iframe & gt! When the child page (& lt; iframe & gt;) is destroyed! Parent-level events created on sub-pages (& lt; iframe & gt;) will also be destroyed! Subpage HTML:
The Code is as follows:
The main difference is that there is a returned value. Generally, sub is used to call a large amount of content, and function is used to define a function when the value needs to be calculated and returned. What is the difference between SUB and
Download the modified version of javascripthashtable hashset. You can add it to your favorites. Fixed the hashtableobj. set ("length", "0") bug.
You can set the key to ignore the case sensitivity.
Clone hashtable objects
You can use obj. valueOf
After all, jQuery is just a basic underlying tool set, encapsulating element selectors, events, and so on. It can basically meet general requirements, but from the perspective of the overall WEB week, in order to improve the efficiency and
The setTimeout function is used for delayed execution. Good at using this function can reduce a lot of ajax requests and dom operations.
1. Delay switching tabRequirement: There are several tabs on the page. When you switch to a tab, the data in a
With the rapid development and dissemination of WEB2.0 and ajax ideas on the Internet, some excellent Js frameworks have emerged one after another, among them, Prototype, YUI, jQuery, mootools, Bindows, and JSVM frameworks in China are well-known.
I.
Json data is used on the webpage. If the data contains special characters, it will be troublesome. We can see that many websites process json data containing special characters on the Internet, and determine the special characters one by one, such
Situ zhengmei also tried to write down the question. I hope you can exchange more information. First, let's look at the concept. First, DOM is a tree, and its root node is Document, which can be roughly used to represent:
The so-called "Recent
ProJavaScriptTechniques study notes. For more information about js learning, see. Global variables are part of the properties of the Window object. For example:
The Code is as follows:
Var test = 'test ';Alert (window. test );
The general
Jquery-Based Seamless image scrolling plug-in. For more information, see. 1. Introduce the JS library, jquery. js script, and plug-in script jcarousellite. js.
The Code is 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service