当前位置:网站首页>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
边栏推荐
- Leetcode14 longest public prefix
- Openssh remote enumeration username vulnerability (cve-2018-15473)
- Map and set
- Lombok common annotations
- Leetcode922 按奇偶排序数组 II
- Brush questions --- binary tree --2
- SSH automatically disconnects (pretends to be dead) after a period of no operation
- 浏览器存储方案
- Why do programmers have the idea that code can run without moving? Is it poisonous? Or what?
- Day12 control flow if switch while do While guessing numbers game
猜你喜欢

PR 2021 quick start tutorial, learn about the and functions of the timeline panel

初始JDBC 编程

Sweetheart leader: Wang Xinling

Jenkins user rights management

Simple understanding of ThreadLocal

Brush questions --- binary tree --2

堆(优先级队列)

Map and set

Adding database driver to sqoop of cdh6

CDH存在隐患 : 该角色的进程使用的交换内存为xx兆字节。警告阈值:200字节
随机推荐
Programmers can't find jobs after the age of 35? After reading this article, you may be able to find the answer
Test shift left and right
[FFH] little bear driver calling process (take calling LED light driver as an example)
lombok常用注解
Find the common ancestor of any two numbers in a binary tree
Leetcode209 长度最小的子数组
SSH automatically disconnects (pretends to be dead) after a period of no operation
Use sqoop to export ads layer data to MySQL
记录一下MySql update会锁定哪些范围的数据
Initial JDBC programming
CV2 in OpenCV VideoWriter_ Fourcc() function and cv2 Combined use of videowriter() function
Discrimination of the interval of dichotomy question brushing record (Luogu question sheet)
寻找二叉树中任意两个数的公共祖先
mysql索引和事务
Jenkins voucher management
考研英语二大作文模板/图表作文,英语图表作文这一篇就够了
Less than three months after the programmer was hired, the boss wanted to launch the app within one month. If he was dissatisfied, he was dismissed immediately
高性能纠删码编码
Full link voltage measurement
Those logs in MySQL