<div id="a">ONE</div>
<div id="b">TWO</div>
<div id="c">THREE</div>
var el = document.getElementsByTagName("div");
for ( var i = 0; i < el.length; i++ ) (function(){
el.addEventListener("click",function(){
console.log(this.id + " " + this.innerHTML);
},false);
})(i);
出现错误信息“el.addEventListener 不是一个函数”,这是什么问题?