当前位置:网站首页>JS object and event learning notes

JS object and event learning notes

2022-07-06 11:56:00 Aya Aya feather

1. Built-in objects

1.1 String

2.1Math

3.1Date

explain

 

2. object

2.1 Object creation

JS Create custom objects , There are three main ways : Create objects in literal form , adopt new object objects creating , adopt object Object's create Method to create an object .

2.1.1 Literal form creation

2.1.2new object establish

 

2.1.3object Object's create Method

 

3. Serialization and deserialization of objects

 

4.this

 

4.1  Use... In functions this

4.2 Use in objects this

 

event

1. event

 

2. effect

 

3. Several nouns in the event

 

4. Event type

 

Common events :

 

5. Event flow and event model

 

5.1 Event Bubbling

 

5.2 Event capture

 

5.3DOM Flow of events

 

 

6. Event handler

 

6.1.HTML Event handler

 

6.2.DOM0 Level event handler

6.3.DOM2 Level event handler

 

 

原网站

版权声明
本文为[Aya Aya feather]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131611562461.html