点击弹出标签名称函数elementName(e){e=e||窗口事件;varselected=e.target||e.src元素;aler(selected.tagName);}
兼容所有浏览器实现鼠标点击任意标签,alert标签名称相关文章