javascript写法
function(event){ alert(event.target.id); }
jquery写法
function test(){ alert($(this).attr('id')); }