I discovered a year ago that similar Such statements have been unable to run in IE7.0 and Firefox, while the old version of the tour and some other IE kernel browser can also be, presumably by the developers deliberately blocked off. As the browser
Here's how to work on JavaScript code and files to improve the performance of Web sites and applications.
Optimize page load time
Before modifying the JavaScript code to improve the performance of the application, we first need to understand the
premises
Recent projects used in the import and export of execl files, which upload using a key to upload the way, as long as an import button, choose a good file automatically uploaded. Example diagram
Status Quo:
The System Upload file page
application uses regular expressions to get cookies
cookie = "id=123; Username=yang; id=123; Sex=1 "If you want to get an ID now, how to write the regular expression.The method of representing the value ([^;] *) Repeat any number of characters
Untitled Document
123
123
123
123
123
456
147
258
var D=document.getelementbyid ("demo");var tag=d.getelementsbytagname ("*");
Use wildcards to match all of the elements under the ID demo
It can also be written directly as:
As a programmer, if only CTRL + C and CTRL + V, then the work is very boring. Do not have a dream of what is the difference with salted fish. The same is true for programmers. We do not have to be limited to paste copy, we have to learn to build
1, there are the following table, we want to take the 2nd row 2nd column value id= "table1"> 1 row 1 column 1 line 2 column 2 row 1 Columns 2 rows 2 columns 2, value method var value==
window.table1.rows.item (0). Cells.item (0). innertext;
Article Author: TyanBlog: noahsnail.com | CSDN | Jianshu
Hyperlinks are often used in javascirpt, but sometimes you don't want hyperlinks to work, you want to write your own response events, and you want the appearance of a hyperlink, you can
JavaScript typeof Constructor
All JavaScript objects have an attribute with a constructor--constructor. This property refers to the function that was originally used to construct the object.
The result of executing the constructor is an object ,
Spoof website, when running the following code, will always pop-up message box, how to click will not end, and can not close the browser, only through the closure process, the reader can experiment, parody, very fun
Code:
JavaScript
ES5 is only divided into global scope and function scope, that is, for,if,while and other statements do not create scopes. ES6 (Let,const) with the exception of several concepts
Execution Environment : Defines the other data that a variable or
1, with the mouse drag to change
the size of
2, with the mouse scrolling control picture size
3, Picture label with code control size
screen.width-500) this.style.width=screen.width-500; " >
4, CSS control picture size
1 css2 Direct
Reprint Source:http://www.jb51.net/article/62472.htm
This example describes how JavaScript removes a specified value element from an array. Share to everyone for your reference. The specific analysis is as follows:The following code uses two ways
Do not explain, directly on the code:
Console.log (xx);
Console.log (window.xx);
(where xx is a nonexistent variable)
When the XX variable is printed directly, a not defined exception is thrown directly and the execution is terminated.
However,
Self-Study time a lot of things can not understand, we do not worry, wait until we learn the back of the knowledge back to see, a lot of things will suddenly come to an end.
Special data type for 1.JavaScript (1) null (NULL type): null is not
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