如何根据event.target得到标签元素的名字

 var localName=$(event.target)[0].localName;

当然可能不用jquery也可以得到,但是我没有测试!