Description
This article is a translationDmitry soshnikov'sArticleExecution contexts.
Article address:Http://dmitrysoshnikov.com/ecmascript/chapter-1-execution-contexts/
Summary
In this article, we will introduce the executable context of
The URL is the uniform resource locator (Uniform Resource Locator, URL). The complete URL consists of the following parts:
Scheme: // host: Port/path? Query # Fragment
Scheme: communication protocol, common HTTP, FTP, Maito, etc.
HOST:
For Javascript in small projects, you only need to write a few functions. However, in large projects, especially in developing websites that require good user experience, such as SNS, a large amount of javascrpt will be used. Sometimes the
1. Do not make any assumptions
(JavaScript is an unreliable Assistant)
One of the most important features of JavaScript that may not be abrupt is-you have to stop any assumptions:
* Do not assume that JavaScript is available. You 'd better
I have read a lot about the Javascript object-oriented technology.Article, Dizzy. Why? Not because of poor writing, but because it is too esoteric.The objects in Javascript have not yet explained what is going on. When it comes up, we will go
For Web developers, file uploading is common and it is essential to determine the file size. Here we mainly introduce several common methods for JavaScript to determine the file size.
The first method is to apply ActiveX controls, for example:
When you point to a link, the status bar at the bottom of the browser window usually displays the URL of the link. During file loading, some messages will be displayed on this location when Java applet is initialized or other messages are possible.
JS has five basic data types: numeric, String, logic, undefined, and null );
There are also three types of composite data: functions, objects, and arrays ).
It is common to judge the data type, for example:
Basic Data Type:
VaR SSTR =
This article is a translation http://dmitrysoshnikov.com/ecmascript/chapter-3-this/ Summary
This article will further discuss the concepts closely related to the execution context --ThisKeyword.
Facts prove that,ThisThe content of this item
Web development is very simple, but web application UI development is very complicated. If you can use some mature UI frameworks, You can greatly reduce the complexity of development. This article introduces five JS frameworks with good interface
ArticleDirectory
I. Preface
Ii. Getting Started
Iii. Improvement
Iv. Habits
4. Note
5. Reading
, The Web standardization Exchange Conference (Guangzhou field) was held on schedule in the Netease conference room. The
ArticleDirectory
I. What is event bubbling?
Ii. What is the function of event bubbling?
3. What should I pay attention?
4. Prevent event bubbles
I. What is event bubbling?
Trigger a certain type of event on an object (such as
The key is to set the prototype attribute of classb to the instance of classa.
Function Classb (color ){ This . Color = Color; This . Saycolor = Function () {Console. Log ( This . Color );}} Function Classa (name ){ This . Name = Name;
Visible area width of the webpage: Document. Body. clientwidth;Visible area height: Document. Body. clientheight;Visible area height: Document. Body. offsetweight:Visible area height: Document. Body. offsetheight;Full text width of the webpage:
Activate again after running!
(!!! If it fails to run after the setting, click (stop now) and then click the element. Do not refresh it any more! It depends on you! Haha !)
Initial speed (unit: pixel/millisecond ):
Do not be too large. Be careful
First, let's take a look at a javascript interview question.Source code(I made a small change). This example is used to understand the reference type in JavaScript. Then we made a preliminary study on the objects in JavaScript.
1:VaR A = {X: 1 };
This article is transferred from:Http://info.codepub.com/2008/09/info-22582.html
The original article is as follows:
Usage: When data on a page is modified, some operations need to be performed.Add initfileds () to the page body loading event
How to use JavaScript to dynamically change the display mode of each field in the list,
Requirement: The color settings of the List field are maintained through a list (ListFieldsColor). The list has the following fields:
You can manually set the
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