object = ["a","input","textarea","select","img","#content",".view"];
for (var i = 0; i < oj.length; i++) {
var resources = document.querySelector(object[i]);
resources.addEventListener('mouseover', function(){alert("test");}, false);
}
错误TypeError: resources is null
,如何解决?