The loop in Javascript is used
CodeSpecifies the number of executions (or when the specified condition is true ).
Javascript loop
When writing code, you often want to execute the same piece of code repeatedly. We can use loops to complete this
Some time ago, I heard from my friends about some ways to print web pages. On a quiet night, I accidentally found several paragraphs when I listened to the songs.
CodeAnd post it to share with you.
Because I have never printed a webpage or a
ArticleDirectory
Insert special characters
You can use a backslash in JavaScript to add special characters to a text string. Insert special characters
A backslash is used to insert ellipsis, line breaks, quotation marks, and
Comparison with other compression tools:
1. JavaScript Compressor (http://dean.edwards.name/packer)
Take his own compression tool code as an example (v2.02). The packer size is 7,428 bytes after compression (comment removal ).
Our compression tool
Note:
Some time ago, when I got familiar with ASP VBScript, I switched to Javascript/Jscript, mainly to Jscript.
However, there is basically no difference between the two. The only difference is that Jscript has no client concept.
At the beginning,
Copy codeThe Code is as follows:
Untitled Document
qrasfdasfasfdasfsafasdfsafsafasdfasdfasd
Add the code string to the page, and the search function is also available. For the demonstration effect, see the text selection with the mouse on
Copy codeThe Code is as follows: function Sleep (obj, iMinSecond)
{
If (window. eventList = null)
Window. eventList = new Array ();
Var ind =-1;
For (var I = 0; I {
If (window. eventList [I] = null)
{
Window. eventList [I] = obj;
Ind = I;
From today on, I will occasionally write something about JavaScript, including languages and applications. To form the JavaScript series.
Unless otherwise specified, it is assumed that the JavaScript execution environment is in the browser.
For the
Javascript programming (Lesson 3)
The third lesson finally met you. Thanks to the hard work of Actions and the resources and tutorials provided by the Forum, I hope you can learn and improve them together.
If you have any comments, suggestions, or
1. Four browsers explain clientHeight, offsetHeight, and scrollHeight of document. body.
These four browsers are IE (Internet Explorer), NS (Netscape), Opera, and FF (FireFox ).
ClientHeightEveryone has no objection to clientHeight and thinks it is
The value of the operation string is common for developers. There are many methods to operate on a string, such as extracting part of the content from a string or determining whether a string contains a specific character. The following JavaScript
1. document. form. item Problems
(1) existing problems:
Many statements such as document. formName. item ("itemName") exist in the existing code and cannot be run in MF.
(2) solution:
Use document. formName. elements ["elementName"]
(3) Others
See 2
Addition value assignment operator (+ = ). Add the variable value and expression value and assign it to the variable.
It is often used when writing JavaScrpt. To be honest, I didn't quite understand it before. After reading a lot of code, it seems
Javascript-File Operations
I. function implementation core: FileSystemObject object
To implement file operations in javascript, FileSystemobject objects are primarily used.
Ii. FileSystemObject Programming
It is very easy to program with
Features:
1. All built-in flash parameter settings are supported. The configuration is simpler and more convenient.
2. Install the embedded flash player detector and prompt the upgrade.
3. fully verified by XHTML 1.0 Strict.
4. It can solve the
1. Function objects and function pointers
A function is actually an executable object. Any way to access a function object is a function pointer.
No matter which method is used
Var a = new Function (...);
Function (...){...}
Var a = function (...){..
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