Some of my summary of JavaScript

Source: Internet
Author: User
Tags null null

types, values, and variables

1, primitive type number, string, and Boolean null null undefined not defined

2. Object type

3, class Array Function Date RegExp Error

4. Integrated garbage collection in JS parser

5, any value of JS can be converted to a Boolean value

6. Type conversion toString () valueOf ()

7.js is a dynamic type var n = 10; Type of variable is not determined during program run

8.js inheritance can only get the value of a property from the parent class, and cannot modify the prototype chain

9. Delete attribute Delete Book.subtitle detection property in Hasownpreperty () propertyisenumerable () var o = {x:1};

10. Attributes ecmascript5 The old IE does not support the following usage

attribute of the Data attribute: value of the writable writable

Enumerable enumerable

Configurable configurable

Accessor attribute properties: Get Set

Enumerable enumerable

Configurable configurable

Function call, method call

function T () {}

T (); Function call this is the global object in strict mode is undefined

var o = {a:function () {}};

A () method call this is the object that is currently being called

Constructor call

var o = new Object (); var o= new Object;

o The This object is inside the prototype property that inherits from the constructor

var r = new O.M (), in which this is not O

To invoke a function first, a function entry is generally window.onload = functions () {};

There are also some tags directly called function must have trigger event such as: onclick click Mouse Ondblcliack double click and so on

If you have self-taught friends I recommend you to the http://www.w3school.com.cn website to learn

Some of my summary of JavaScript

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.