当前位置:网站首页>DOM event flow event bubble event capture event delegate
DOM event flow event bubble event capture event delegate
2022-07-26 05:11:00 【rananie】
List of articles
DOM Flow of events

Interview questions
- Event delegation , Advantages of event proxies
- The process of event capture and bubbling
- Event bubbling and delegation ? Use scenarios ?
- JS Principle of event binding
- When to use bubble ? When to use capture ?
Event bubbling and event capture
Purpose : Solve the flow of events in the page ( Sequence of events ) The problem of
- Event Bubbling : Deliver events from the inside out
- Event capture : Pass events from outside to inside
When binding event listening , The third parameter can set the stage at which the event is executed , The default is the event bubble stage
DOM The three phases of the event flow are the capture phase -> Target stage -> bubbling phase .
When the event is in the target stage , The order of event calling depends on the writing order of the bound event
Event agent - Using the event bubbling mechanism
Event agent : Event broker is to use the mechanism of event bubble or event capture to bind a series of inner element events to outer element events .
The benefits of event delegation
- Reduce the number of event listening bindings , Reduce memory usage , Lifting performance
- Added after the bound event pair DOM Node is still valid
边栏推荐
- Annotation @autowired how to assemble automatically
- Add and modify the verification logic, and use -validation- to complete the group verification
- MySQL基础学习
- List converted to tree real use of the project
- 开发转测试:从零开始的6年自动化之路
- Install nccl \ mpirun \ horovod \ NVIDIA tensorflow (3090ti)
- uniapp小程序框架-一套代码,多段覆盖
- Excel VBA:将多个工作表保存为新文件
- Seata submits at details in two stages
- Earth system model (cesm) practical technology
猜你喜欢

Redis解决库存超卖问题

Date and time function of MySQL function summary

Axi protocol (4): signals on the Axi channel

pillow的原因ImportError: cannot import name ‘PILLOW_VERSION‘ from ‘PIL‘,如何安装pillow<7.0.0

MODFLOW Flex、GMS、FEFLOW、HYDRUS实践应用

分子骨架跃迁工具-DeLinker介绍

Seata两阶段提交AT详解

普林斯顿微积分读本02第一章--函数的复合、奇偶函数、函数图像

How many holes have you stepped on in BigDecimal?

JVM Lecture 5: how to deal with peak push of vertical and horizontal data
随机推荐
地球系统模式(CESM)实践技术
手把手教你用代码实现SSO单点登录
webassembly 01基本资料
Test of countlaunch demo
Redis过期删除策略和内存淘汰策略
MySQL八股知识点:从入门到删库
Alibaba cloud industrial vision intelligent engineer ACP certification - Preparation
Week 6 Learning Representation: Word Embedding (symbolic →numeric)
JVM第二讲:类加载机制
@Autowired注解的原理
SAP报表开发步骤
Map making of environmental impact assessment based on remote sensing interpretation and GIS technology
Excel VBA:实现自动下拉填充公式至最后一行
BigDecimal 的 4 个坑,你踩过几个?
域名解析过程全分析,就着文字理解更佳
Redis solves the problem of oversold inventory
没背景、没学历?专科测试员进入互联网大厂是不是真的没希望?
Security permission management details
[acwing] 2983. Toys
CLM陆面过程模式