当前位置:网站首页>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
边栏推荐
- China traffic sign detection data set
- Find the common ancestor of any two numbers in a binary tree
- 排序---
- Leetcode739 每日温度
- 刷题---二叉树--2
- Error in kubeadm join: [error port-10250]: port 10250 is in use [error fileavailable--etc kubernetes PKI
- CV2 in OpenCV VideoWriter_ Fourcc() function and cv2 Combined use of videowriter() function
- Jenkins user rights management
- WSL 2 will not be installed yet? It's enough to read this article
- arcgis js 4.x 地图中加入图片
猜你喜欢
![[C language] convert decimal numbers to binary numbers](/img/9b/1848b68b95d98389ed985c83f2e856.png)
[C language] convert decimal numbers to binary numbers

趣味 面试题

Deep copy event bus

Go learning notes - multithreading

Interview with meituan, a 34 year old programmer, was rejected: only those under the age of 30 who work hard and earn little overtime

Openssh remote enumeration username vulnerability (cve-2018-15473)

Initial JDBC programming

Lekao.com: experience sharing of junior economists and previous candidates in customs clearance

SparkContext: Error initializing SparkContext解决方法

使用Sqoop把ADS层数据导出到MySQL
随机推荐
China traffic sign detection data set
Gaode map test case
PR 2021 quick start tutorial, learn about the and functions of the timeline panel
H5 to app
The programmer and the female nurse went on a blind date and spent 360. He packed leftovers and was stunned when he received wechat at night
Leetcode122 the best time to buy and sell stocks II
Map和Set
Anxiety of a 211 programmer: working for 3 years with a monthly salary of less than 30000, worried about being replaced by fresh students
AAAI 2022 | Peking University & Ali Dharma Institute: pruning and compression of pre training language model based on comparative learning
drools动态增加、修改、删除规则
AI中台技术调研
LeetCode—剑指 Offer 37、38
堆(優先級隊列)
Map and set
mysql表的增删改查(进阶)
Docker-compose配置Mysql,Redis,MongoDB
Go learning notes - go based interprocess communication
Maximum profit of jz63 shares
Leetcode922 按奇偶排序数组 II
Post request body content cannot be retrieved repeatedly