你可以这样试试
funtion a(thisObj){ var id=$(thisObj).attr('id');//获取id值 //id的值获取到,然后处理业务 ... //隐藏div $(thisObj).hide();}
直接onclick里写$(this).hide()不就好了