当前位置:网站首页>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
- ThreadLocal的简单理解
- Is the neural network (pinn) with embedded physical knowledge a pit?
- Leetcode739 daily temperature
- The blink code based on Arduino and esp8266 runs successfully (including error analysis)
- FastDateFormat为什么线程安全
- Lekao: 22 year first-class fire engineer "technical practice" knowledge points
- 倍增 LCA(最近公共祖先)
- BOM DOM
- Drools executes the specified rule
猜你喜欢
分布式机器学习框架与高维实时推荐系统
Take you ten days to easily finish the finale of go micro services (distributed transactions)
Simple understanding of ThreadLocal
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
Go learning notes - multithreading
MySQL and PostgreSQL methods to grab slow SQL
The blink code based on Arduino and esp8266 runs successfully (including error analysis)
Brush questions --- binary tree --2
Jenkins user rights 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
随机推荐
Jenkins voucher management
CV2 in OpenCV VideoWriter_ Fourcc() function and cv2 Combined use of videowriter() function
LeetCode—<动态规划专项>剑指 Offer 19、49、60
记录一下MySql update会锁定哪些范围的数据
Go learning notes - multithreading
CDA数据分析——AARRR增长模型的介绍、使用
Shuttle encapsulated AppBar
[FFH] little bear driver calling process (take calling LED light driver as an example)
Those logs in MySQL
Intel internal instructions - AVX and avx2 learning notes
Why do programmers have the idea that code can run without moving? Is it poisonous? Or what?
The blink code based on Arduino and esp8266 runs successfully (including error analysis)
Mysql database foundation
Drools terminates the execution of other rules after executing one rule
Input a three digit number and output its single digit, ten digit and hundred digit.
Go学习笔记—基于Go的进程间通信
Fastdateformat why thread safe
China traffic sign detection data set
上传文件时,服务器报错:IOFileUploadException: Processing of multipart/form-data request failed. 设备上没有空间
LeetCode—剑指 Offer 51. 数组中的逆序对