Second, Dom object:The DOM Document Object model, which defines the interface for manipulating document objects.The DOM represents an HTML document as a family tree, using tokens such as parent, child, sibling (brother) to indicate the relationship
There are two easy-to-ignore questions in JavaScript, null==undefined and null!==undefined.The syntax in javascript specifies that = = is the judgment value equal, = = = is the judgment value and type are equal.This needs to be distinguished,
Using JavaScript in HTML1. Delaying the scriptThe script tag defines the defer attribute, which is deferred until the entire page has been parsed and then runThe detailed contents are as follows:2. Asynchronous scriptingThe script tag defines the
In JavaScript learning the scope and scope of the chain is relatively difficult to understand, the following I about the JavaScript scope and scope chain to do a detailed introduction, to give you beginners to answer questions.Let's start by
Well, this stuff would be a little bit strange if you deal with it first time.Container Object:
Just a Wrapper/contianer for values
No Method
No nouns
var _container = function (val) { this. val = val;} var Container =
Exception capture1, exception: When the JavaScript engine executes the JS code, an error occurred, causing the program to stop running.2. Exception throws: When an exception is generated and an error message is generated for this exception3.
In the Book of JavaScript revelation: In JavaScript, the object is "King" (Almost everything in JavaScript is an object or object).The most profound understanding of the "swallow" of JavaScript--and one of the most rewarding realizations of all time-
The eval () function can execute a string as if it were a JavaScript expression.We often go to the eval function in the middle of JavaScript,Some people think that this function is very strange, you can turn some strings to function very
When we touch a new language, we must first understand it and have some theoretical understanding of it.So, what is JavaScript?JavaScript is a scripting language that is interpreted and executed by a Web browser. It includes ECMAScript, Dom, and BOM.
In the previous period of time to learn HTML and CSS, but also combat some of the simpler structure of the project. Before the use of the knowledge of JS, the effect is always felt less. Although the overall layout and some basic effects can be done
1, NaN is not a digital Infinity infinityAlert (parseint ("DD")); // NaNalert (1/0); Infinity2, logic or | | To return the first value that is not falseAlert (100| | 0); // - function Test (e) { = e| | {};}3, eval () function,
Data type 23. Boolean Type (Boolean)Description: Unlike strings, do not enclose Boolean values in quotation marks. A Boolean value of false and the string "false" are two different things.regulation: Boolean data can only have two values of true and
JavaScript Closure Model-----[Original Translation]2016-09-01 09:32:22
"One" closure is not mysteriousThe purpose of this article is to use JavaScript code to illustrate closures in order to make it easy for ordinary developers to understand
In Javavscriprt, there are some very characteristic families, they are famous for the compatibility problem of the browser, some are famous because of its important role, in short, the understanding of these Pinyi family and solve their
Javascript-basic Concept Summary (2)Recently learned some JavaScript basics, but also solved a lot of previous doubts, remember the first time asked how to understand the closure, my answer is: it is similar to the encapsulation bar! Now think about
How to Use stream in node. js: node. jsstream
I ran to learn OC in these days, but I haven't learned it yet. There is still a long time to leave the job. By the way, let's review the knowledge of node.
There are a lot of people coming and going in
Javascript learning-about JS global variables, local variables (recommended), and js global variables
Today, an intern from our company asked me about the differences between the two JS codes:
Code 1:
Code 2:
I think it's easy. Isn't it about 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.