标签:
document.getElementById(‘clickTest‘).onclick = function(event){ var event = event? event: window.event var obj = event.srcElement ? event.srcElement:event.target; alert(obj.id); }
兼容的event获取目标
原文地址:http://www.cnblogs.com/heqhbk/p/4250254.html