Web site development often need to achieve a large number of images in a page to browse, if you consider the flow, can be like pconline each page shows only a picture, so that users each look at a picture will need to download the entire page.
1.2. What is JavaScript?
The predecessor of JavaScript was LiveScript, but Netscape later changed its name to JavaScript, probably due to the excitement of Java. This name often confuses people, because although Java and JavaScript have some
Web2.0 is about the spirit of public participation, whether it's blogs, groups, Wikipedia and RSS aggregators. However, to participate in the public, practicality, personalization and humanization is particularly important. has been said Sohu blog
With the application of Ajax more and more, often need to load the data in the foreground, which can reduce the time of page loading, but also improve the user's experience, so the actual project requires me to write a JavaScript paging control, for
I used to use eclipse to install a myeclipse application. Invent a lot of questions. One of the most salient of these is save the time when saving files always verifies a lot of equipment. This is the longest to verify JS. and will always pop up a
This is the current object that refers to the current Page Object window if you use this in a global scope, and if this is used in a function, this refers to what is invoked on the object based on this function at run time.
We can also use apply
In JavaScript development, people ask: what is 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
Defined:
The alert () method displays a warning box with a specified message and an OK button.
Grammar:
Alert (Message)
Tips:
The message dialog box is provided by the system, so the style font may be different in different browsers.
The
about form validation, it is best to use regular expressions, of course, if the simple do not bother to write regular expressions, in general, use the Internet to search a lot of regular expressions, all kinds of, everything, The following
Heap and stack The two words we have touched many times, then what is the actual stack of what exists in the heap. Just take the variables in javascript:
First, the variables in JavaScript are divided into basic types and reference types.
The base
JS array elements to add and delete has been more puzzled, today finally found the details of the information, first to give me the test code-^var arr = new Array ();Arr[0] = "AAA";ARR[1] = "BBB";ARR[2] = "CCC";alert (arr.length);//3Arr.pop ();alert
Tag Script
We know that HTML to use JS will use code directly here. The second is to write the JS code in other files, and then the SRC attribute of the script tag is introduced.
Script actually has 6 attributes (all optional):
How to createvar reg=/\s/var reg=New RegExp ('\\s')//need to be escapedMatching principleAll letters and numbers are matched by literal meansSpecial symbols need to be escaped with a backslash (\) as a prefixMatch character[...] Match any of the
In JavaScript, the lexical analysis is performed before the moment the function is called.The process of lexical analysis:When a function is called, an active object is formed first: Avtive object (AO), and analyzes the following 3 aspects:1:
JavaScript design mode-Factory mode I understand the factory pattern, which is to provide a pattern of multiple classes related to a unified portal, so that you can get multiple classes from one portal and increase productivity.However, there are
Singleton mode, also known as the singleton mode, is an object class that allows instantiation only once.Use:1. Use an object to plan a namespace (for example, the jquery library, which provides a namespace for it), and to manage properties and
function in the process of execution, first to find the variables from their own internal
If it is not found, then look for it from the scope where the current function is created, to go up
Note that the current state of the variable is
1.cmd Operation NodeE:node carriage return Console.log ("1");E:node Haha.js Enter (to CD to the directory where the file is located)2. Browser Two kinds of tools:1. Typesetting Engine: Loading HTML/CSS2. Explanation Engine: Run JS script3. Events
The 1th chapter of the course IntroductionThe necessity of learning the design pattern, the course contains the knowledge points, the course arrangement, the study premise1-1 Guided LearningThe 2nd Chapter Object-orientedExplains object-oriented
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