当前位置:网站首页>Bom Dom
Bom Dom
2022-07-02 12:36:00 【Il n'y a pas d'eau dans la mer】
Un.、BOM
Attention!: windowSuccessionEventTarget
2.、DOM
1、Surveillance des événements
2、Flux d'événements - Bulles d'événements / Capture d'événements
3、Propriétés et méthodes des objets de l'événement
const spanEL = document.querySelector(".span");
// En rappelant cette fonction ,Sera transmiseventParamètres
spanEL.addEventListener("click", function (event) {
console.log("spanCliqué", event);
console.log("Type d'événement", event.type);
// Lorsque le clic se produit et que l'élément de traitement du clic est différent
console.log("Éléments de l'événement", event.target, event.currentTarget);
console.log(" Où l'événement s'est produit ", event.offsetX, event.offsetY);
});
// Méthodes courantes
// preventDefault, Empêcher le comportement par défaut
const aEl = document.querySelector("a")
aEl.addEventListener("click", (event) => {
event.preventDefault();
})
// stopPropagation , Capture d'événements bloquable
边栏推荐
- Jenkins用户权限管理
- "As a junior college student, I found out how difficult it is to counter attack after graduation."
- Lombok common annotations
- Leetcode - Sword finger offer 37, 38
- Drools executes the specified rule
- The blink code based on Arduino and esp8266 runs successfully (including error analysis)
- Embedded Software Engineer career planning
- 深拷贝 事件总线
- Drools dynamically add, modify, and delete rules
- 怎样写一篇赏心悦目的英文数学论文
猜你喜欢
刷题---二叉树--2
High performance erasure code coding
Openssh remote enumeration username vulnerability (cve-2018-15473)
CDA data analysis -- Introduction and use of aarrr growth model
SparkContext: Error initializing SparkContext解决方法
Go learning notes - multithreading
AAAI 2022 | Peking University & Ali Dharma Institute: pruning and compression of pre training language model based on comparative learning
堆(优先级队列)
From scratch, develop a web office suite (3): mouse events
WSL 2 will not be installed yet? It's enough to read this article
随机推荐
H5 to app
Leetcode14 longest public prefix
高性能纠删码编码
Deep understanding of P-R curve, ROC and AUC
CDH存在隐患 : 该角色的进程使用的交换内存为xx兆字节。警告阈值:200字节
CPU指令集介绍
What is the relationship between NFT and metauniverse? How to view the market? The future market trend of NFT
寻找二叉树中任意两个数的公共祖先
drools执行String规则或执行某个规则文件
Leetcode209 长度最小的子数组
CDA数据分析——Excel数据处理的常见知识点归纳
Programmers can't find jobs after the age of 35? After reading this article, you may be able to find the answer
堆(優先級隊列)
China traffic sign detection data set
深拷貝 事件總線
Lekao: 22 year first-class fire engineer "technical practice" knowledge points
计算二叉树的最大路径和
arcgis js 4.x 地图中加入图片
Drools executes the specified rule
Brush questions --- binary tree --2