代码如下,使用each遍历即可
$(".div a").each(function(index, element) {
$(this).attr('href',$(this).attr('href')+"&type=" + index);
});
代码如下,使用each遍历即可
$(".div a").each(function(index, element) {
$(this).attr('href',$(this).attr('href')+"&type=" + index);
});