In the object model provided by JavaScript, the window object mainly controls the client browser. To open a new window, you need to use the following member function window. open (), for the detailed parameters of this function, there are already a
Summary Web
Program"Unended string constants" in Javascript"
1. When Javascript is referenced, the character languages used are inconsistent. For example: Alias "src =" XXX. JS "charset =" UTF-8 ">. xxx. JS file is used inside the gb2312 format,
Some pureCode
learn JavaScript books // status bar Information back to the previous page // previous page, you can also use history. back (), the last page of history. forward ()
To learn JavaScript, I had to read this book and select "javascript getting started classic". It is said that it is not bad. I have read some of it today. I would like to summarize some of the points that I did not pay attention to before.
1. There
1. Objects in JS are indeed more convenient. Similar to classes in C ++, they can contain methods and attributes, greatly simplifyingCodeAnd optimized code management.
The definition of an object is actually very simple, that is, to define a
1. Shift () function
Definition
This function removes the first entry from the array and returns the deletion entry.
Usage example
VaRFruits = ["banana", "orange", "apple", "Mango"]; Fruits. Shift () console. Log (fruits );
Result output:
CompileCodeIt is inevitable that the naming of variables is involved. The variable name syntax cannot be correct, but the impact of variable naming on code readability is ignored. Variable naming rules should also comply with the following famous
Common JavaScript page jumps
Code:
License:
Link:
return to the previous step.
"> return to the previous step
Direct jump:
Open a new window:
open a new window
Currently, Javascript has become the most popular and widely used programming language in the world-because it is bundled into various browsers. As a programming language, it has penetrated into people's daily lives and brings better user experience
Previously, we introduced how to implement inheritance through object impersonating in JavaScript. This is the most primitive method. This article describes two inheritance methods that are similar to object impersonating, that is, using the call ()
Declared global variables in JS are mainly divided into explicit declaration or implicit declaration.
Method 1:
Using var (keyword) + variable name (identifier) is declared outside the function, that is, global variables. Otherwise, local variables
Before reading this article, we suggest you first look at the javascript design pattern of this article. After all, I personally feel better.
The factory mode is divided into the simple factory mode and the complex factory mode. The former uses a
In Javascript, it is often necessary to handle time-related actions, such as displaying time and trigger an event with a timer. Related to this is the Date of the Javascript built-in object and the Timer method under the Windows Object.Date is
Digress: I have encountered this problem many times, and I don't remember how to solve it every time. Please remind myself this time.I. Problems
When writing native Javascript, we often use getElementsByTagName () and childNodes to traverse nodes.
Click here to download the source code of this book
Click here to download the book PPTAddress: http://learning.artech.cn/20080621.mastering-javascript-jquery.html
Welcome to the cutting-edge video classroom. The "Javascript + jquery proficient"
Visible area width of the webpage: document. body. clientWidthVisible area height: document. body. clientHeightVisible area width of the webpage: document. body. offsetWidth (including the width of the edge)Visible area height of the webpage:
Http://www.cnblogs.com/zhoufeng/archive/2010/06/09/Javascript.html
Note:
1. Functions without return values cannot be called in JS. database operations can only be called using ajax.
2. Remove background functions and PASS Parameters
Here, we can only record what I think is interesting.
1. for variables, js variables can be non-declared, such as I = 0. However, we recommend that you use the following var, especially when local variables and global variables are duplicated, this
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