当前位置:网站首页>[JS event -- event flow]
[JS event -- event flow]
2022-07-02 04:01:00 【renrenrenrenqq】
js event – Flow of events
Today we mainly introduce the event flow of the browser we used .
DOM2 The event flow defined by level event includes three stages :
1. Event capture phase
2. At the target stage
3. Event bubbling stage
One 、 The previous two kinds of event flow analysis
1. Bubbling event flow
Personal understanding is similar to bubble sorting principle , That is, the event has the most specific reception , Then it bubbles upward gradually , To the page .( That is, from the child element to the parent element )
With the button button For example
2. Capture event flow
It is completely opposite to the principle of bubbling event flow , Events are received from page elements , Step down to the most specific elements .
The same to button Button as an example :
Two 、JS Flow of events
JS The schematic diagram of the event is as follows :
边栏推荐
- "No war on the Western Front" we just began to love life, but we had to shoot at everything
- Flutter中深入了解MaterialApp,常用属性解析
- Opencv learning example code 3.2.4 LUT
- 【IBDFE】基于IBDFE的频域均衡matlab仿真
- C语言:逻辑运算和判断选择结构例题
- 《西线无战事》我们才刚开始热爱生活,却不得不对一切开炮
- Blue Bridge Cup single chip microcomputer sixth temperature recorder
- The second game of the 12th provincial single chip microcomputer competition of the Blue Bridge Cup
- Suggestions on settlement solution of u standard contract position explosion
- Déchirure à la main - tri
猜你喜欢
Finally got byte offer. The 25-year-old inexperienced perception of software testing is written to you who are still confused
First acquaintance with P4 language
手撕——排序
Go语言介绍
The 7th Blue Bridge Cup single chip microcomputer provincial competition
Spring recruitment of Internet enterprises: Kwai meituan has expanded the most, and the annual salary of technical posts is up to nearly 400000
The second game of the 11th provincial single chip microcomputer competition of the Blue Bridge Cup
66.qt quick-qml自定义日历组件(支持竖屏和横屏)
[personal notes] PHP common functions - custom functions
蓝桥杯单片机第六届温度记录器
随机推荐
Cloud service selection of enterprises: comparative analysis of SaaS, PAAS and IAAs
Monkey test
【leetcode】34. Find the first and last positions of elements in a sorted array
go 分支与循环
Target free or target specific: a simple and effective zero sample position detection comparative learning method
Where can I buy cancer insurance? Which product is better?
Opencv learning example code 3.2.4 LUT
【leetcode】81. Search rotation sort array II
Go variables and constants
5G时代全面到来,浅谈移动通信的前世今生
LxC limits the number of CPUs
[untitled]
C语言:逻辑运算和判断选择结构例题
Lei Jun wrote a blog when he was a programmer. It's awesome
[personnel density detection] matlab simulation of personnel density detection based on morphological processing and GRNN network
PR zero foundation introductory guide note 2
Force buckle 540 A single element in an ordered array
【leetcode】74. Search 2D matrix
The 6th Blue Bridge Cup single chip microcomputer provincial competition
Qt插件之Qt Designer插件实现