Chinese character sorting,
Mixed sorting in Chinese and English,
Data size sorting,
File type sort (suffix name sort)
Date Time sorting,
Price sorting,
Chinese mixed digit sorting;
How to: The document is loaded with the new Tablelistsort (arguments,
Chapter I: Loading and executingThe browser's JavaScript engine is the compiler layer optimization;
When a browser executes JavaScript code, it cannot do anything else at the same time (a single process), meaning that every time the tag appears, it
For example
Copy Code code as follows:
settimeout (function () {
Alert (' Hello! ');
}, 0);
SetInterval (callbackfunction, 100);
It is assumed that the greeting method in settimeout is executed immediately, because it
During the groping process, see such characters as "\155", used in place of the character "M". Why? .... Completely do not know the reason, the whole person suddenly panic! Don't say your 4 years of experience! "\155" and "M" is congruent, until now,
Give an example:
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
Just try to know that this code means to declare a function and execute it immediately, because the variable
1 How do I connect a string? First, let's review two common methods of string concatenation:1.1 Using string concatenation operatorsCommonly used languages (such as Java, C #, PHP, etc.) have string concatenation operators, JavaScript is no
Make sure your code is as concise as possible
Don't rely on javascript for everything. Do not write repetitive scripts. To make JavaScript as a candy tool, it only plays a role in beautification. Don't add a lot of JavaScript code to your site. Use
Jqury Framework is definitely the first choice for the development of the page, the code is short and strong, the disadvantage is the lack of object-oriented features, fortunately there are many plug-ins! As for ext is a giant, highly
Pre-loading and JavaScript Image () objects
Many high-res images can really make your Web site cleaner. But they also slow down access to the site-the image is a file, the file uses bandwidth, and the bandwidth is directly related to the wait time.
Copy Code code as follows:
function Fors () {
Obj_a = Obj_b;
Obj_b.attr = obj_a;
}
Copy Code code as follows:
function Fors () {
Obj_b = {};
Obj_b.attr = Obj_b;
}
Above are two very display
XML DOM support in IE
IE support for XML is based on the MSXML library of ActiveX.
1. Dom Creation
For each new version of MSXML, a different XML DOM object is created, so try to choose a new version of the XML DOM.
2. Loading XML
Loading XML is
The first important element in this book is the interface.
We should be familiar with the interface, simply say that the interface is a contract or specification. In strongly typed object-oriented languages, interfaces can be easily implemented.
Introduction:
Today I see someone else's topic:
Copy Code code as follows:
function fn (x) {
x = 10;
Arguments[0] = 20;
Console.log (X,arguments[0])
}
FN ()
Feel oneself to this also is a smattering of, oneself also
In JavaScript development, people ask: What's the difference between null and undefined?
A bad time to answer, especially undefined, because this involves the realization of the principle of undefined. So, after thinking carefully, write down this
First create an HTML page for sort.html and copy the following content into it
Copy Code code as follows:
Untitled Document
ID|-
name|-
1
Happy
3
Dinner
5
Open
ID|-
Please see source code:
Copy Code code as follows:
function Clone (o) {
var F = function () {};
F.prototype = O;
return new F ();
}
First Look at Ext (4.1 of 1896 lines start) of the prototype inheritance.
Copy
In JavaScript, the method of determining whether a variable is a number is mainly about the isNaN () function in JavaScript.
Function:
The isNaN () function checks whether its arguments are non-numeric values.
Grammar:
isNaN (x) x is
While JavaScript is inherently casual, the language is becoming more and more often sat as the browser can do more and more things. In complex logic, JavaScript needs to be modular, modules need to be encapsulated, leaving only interfaces for
The main content of this article is from JavaScript advanced programming, object-oriented and prototyping chapters:
1. Factory mode
ECMAScript can create objects through Factory mode:
Factory mode
function CreateObject (name, age) {
var
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.