The jquery object is the object that is generated after the DOM object is wrapped through jquery. jquery objects are unique to jquery, which can use the methods in jquery, but cannot use DOM methods, such as: $ ("#img"). attr ("src", "test.jpg");
Original Author: Andy CroxallOriginal link: Ten oddities and secrets about JavaScriptTranslation Editor: Rok Zhang Xinsen XuData types and Definitions1. Null is an objectJavaScript has a null type in many types, it has a unique value of NULL, that
JS operation XML Source, as the dynamic news of the page
Reference JS source code as follows (save as Rss.js file):
Copy Code code as follows:
var main = document.getElementById ("content"). getElementsByTagName ("DIV");
/*
* There is
The basic writing of a For loopThe code is as follows:
Copy Code code as follows:
Example one for (Var i=1;ialert (i);
}
This piece of code is too simple, I am embarrassed to take the shot. The result of the code is to pop 1
Translator Note: This article is about the ECMAScript 6 knowledge points, if you do not even understand the ES5. I must say, you are very behind. CSS4,HTML6, even ES7 ES8 have already begun planning, hurriedly shape move up, otherwise eliminated!
Recently wrote a jquery plugin, in the final completion of the optimization, compared to find compressed file larger, thinking about those can be modified and optimized, and found that the principle of compression has a lot of space to learn,
The rise of Ajax has brought new life to JavaScript, a plethora of JavaScript frameworks (JavaScript framework), some frameworks for summarizing and refining developer project experiences, and some frameworks for commercial companies, At the same
Array: Ordered collection of series elements
Property:
Length: Used to get the number of array elements, the largest subscript plus 1
Method:
Sort (function): In the case of unspecified sorting numbers, sorted by the alphabetical order of the
JavaScript calls, in addition to the formal parameters defined at the time of declaration, each function accepts two additional parameters: this and arguments,this are important in object-oriented programming, depending on the invocation
UGLIFYJS is a tool for compressing and beautifying JavaScript, and in its documentation, I've seen several ways to optimize if statements. Although I have not used it to do some experimental testing, but from here I can see that it does make JS a
This period of time has been using AJAX technology to do things, so there will be more opportunities to learn JavaScript knowledge. Earlier on the internet to collect some about the JavaScript of IE operation code (specifically where cope, so the
JavaScript and dynamic pages cannot get the time the cookie expires, the browser manages the expiration time, and JavaScript and dynamic pages can only set expiration time. cannot be obtained through Document.cookie (JavaScript) or Cookie.expires
In JavaScript, you can use the Eval () function to parse the JavaScript code in a string and return the corresponding code execution result:
Copy Code code as follows:
Console.log (eval ("42 * 2"));//84
In essence, eval ()
See Online An Introduction Webstrom article, feel the function is really powerful, also know why Alibaba's front-end to GitHub file on why there is a. idea file, (legend Taobao Internal recommended to write JS with Webstrom)
We can understand that
I knew long ago that I could convert arguments to an array: [].slice.call (arguments), becauseArguments is a class array object, so you can use it. But I never knew what it was called Class array objects (Array-like objects)
Today to see effective
The example in this article describes how JavaScript iterates through all the properties of a DOM object. Share to everyone for your reference, specific as follows:
HTML for DOM objects:
Copy Code code as follows:
disable State cookie
1,
Navigation Menuthe navigation menu has long been "deep in the hearts of the public", the application of blog increasingly important and diverse. From the beginning of this article, I will carry out a few topics on the WordPress navigation menu,
This article describes the three-dimensional JavaScript implementation of the 3D transformation of the stereo circle. Share to everyone for your reference. Specifically as follows:
Here use JavaScript to realize the transformation of the stereo
8 JavaScript to create objects (Class) method, Yiyi introduced to everyone, I hope you like.
1. Use the object constructor to create an object
The following code creates a person object and prints the property value of name in two ways.
Accordion Drop-down menu to achieve more flexible results, different from the traditional Pull-down menu, this article for you to share a JavaScript accordion drop-down menu Implementation code, first look at the effect of the picture:
Specific
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.