事件绑定
const btn = document.getElementById('btn1');
btn.addEventListener('click',event =>{
console.log(event.target)
event.preventDefault();
})
通用事件绑定
function bindEvent(elem, type, fn) {
elem.addEventListener(type, fn)
}
const p1 = document.getElementById(