JS has 5 primitive value types: Boolean, number, string, NULL, and undefined.Check with typeof: typeof true; "Boolean" typeof 2; "Number" typeof "S";//"string" typeof null;//"Object": ECMAScript describes null as a unique type, but the return value
Name
Grammatical composition
Describe
return value
Example
Descendant Selector
Ancestor descendant
Selects all descendant (descendant) elements in the ancestor element
Element collection
$
1.topThis change always refers to the top-level browser window of the split window. If you plan to execute commands from the top level of the split window, you can use the top variable.2.openerOpener The object that is used to refer to the page that
Relevant knowledge points:
JavaScript Learning note Seven;
Web Course--"JavaScript Advanced chapter"
Task : A class of results came out, now the teacher to the class of the results printed out.:XXXX年XX月X日星期X--班级总分为:81Format
Teaching Features:1, teaching emphasis on technical needs, design principles, thinking model building, rather than simply "grammar knowledge" to explain.2, the process of a large number of "based on the standard, horizontal linkage, reflective
Have a nice smileI hear these two days, the whole country is very cold. Fujian people say 1 degrees good cold, Beijing people laugh: we this 零下17度. The Heilongjiang people also laughed: we this 零下33度. Hulunbeier people hear laughter: we this 零下43度.
What isThe closures? Look at the code first:function A () { var n = 0; Function Inc () { n++; Console.log (n); } Inc (); Inc (); }a (); Console output 1, then output 2It's simple. Take another look at the code:function
Like all object-oriented languages, JS has inheritance, but unlike most oo (object-oriented) languages, JS only implements inheritance and no interface inheritance. Then, the prototype chain plays a decisive role.In ECMAScript, the prototype chain
Knowledge Description:Beginner JavaScript, pay attention to the following seven big details, in the case of the same function, make our code more understandable, more efficient.First, Simplifying CodeExample: Creating an ObjectThis is the way it was
--Introduction to 23 design patterns in an object-oriented wayRecently read a book, recommended to Everyone "JavaScript design patterns and development practices" Turing Press, said very good!Detailed explanation of JS development commonly used in 14
JavaScript version information The following table lists the version information for Microsoft JScript that the host app implements.Language elements 1.02.03.04.05.05.15.5Microsoft Internet Explorer 3.0xMicrosoft Internet Information Server
A prototype is one of several questions that JavaScript is about to talk about. Said a big word, the most clear history. Originally wanted to follow the outline of the wording of writing, but write to the back feeling in fact there is a concept,
The first part of the series focuses on how to "encapsulate" data and methods, and how to generate instances from prototype objects.Today's introduction is about five ways to "inherit" between objects.For example, there is now a constructor for an
ECMAScript variables are loosely typed, and when assigning a value to a variable, the parser must determine whether the value is a base type or a reference type. The base type is accessed by value, because the actual value that is saved in the
Excerpt from: http://ourjs.com/detail/529bc7e44c742ef031000002ObjectECMAScript is a highly abstract object-oriented language that interacts with objects . Even though there are basic types inside the ECMAScript, they are also converted to objects
DefinedJavaScript regular expressions are defined in two ways, defining a string that matches similar 1. Constructorsvar reg=new RegExp (' ]+%> ', ' G ');2. Literalvar reg=/]%>/g;
g: Global, Full text search, default search to first result
Implementation of javascript html5 shake function, javascripthtml5
I wrote an introduction to the html shake function through online materials and my own sorting, and used it for technical backup.Knowledge points
1. DeviceMotionEventThis is a
In-depth analysis of constructor in JavaScript
Definition and usage
The constructor attribute returns a reference to the array function that creates this object.
Syntax
Object. constructor
Constructor, constructor. We are familiar with this name.
In-depth analysis of the use of the store grouping function in Extjs, extjsstore
In the process of project practice, you need to group data in the grid according to a certain field. Of course, this function is available in the api and listed here
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