jq通过对象获取其ID值

$(this).click(function(){
    var this_id=$(this).attr("id");// attr(属性名) 获取属性的值
    alert(this_id);
});

 

posted @ 2013-10-10 20:00  程序员泥瓦匠  阅读(515)  评论(0编辑  收藏  举报