📅  最后修改于: 2022-03-11 15:04:16.098000             🧑  作者: Mango
const div = document.querySelector('div');
div.addEventListener('dblclick', () => {
alert('You just double clicked the div!');
});