例如我定义一个函数
var person = document.getElementById('box'); person.click = function() { alert('my name is xioaming'); }
和
person.addEventListener('click', function(){ alert('my name is xiaoming'); }, true);
用法上有区别么
蛊毒传说
相关分类