📅  最后修改于: 2022-03-11 15:00:05.532000             🧑  作者: Mango
代码示例3
document.querySelectorAll('.some-class').forEach(item => {
item.addEventListener('click', event => {
//handle click
})
})