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