jq通过对象获取其ID值

it2022-05-09  31

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

 

转载于:https://www.cnblogs.com/Alandre/p/3362050.html


最新回复(0)