我有:
var ahrefLength = $( a ).length;
for (var i = 0; i < ahrefLength; i++) {
var ahrefUrl = $( a )[i].attr( href );
if(ahrefUrl != ) {
$( a )[i].text( Unique );
}
}
How can I fix this so that no duplicates of "href" appear ? At the moment, if 2 href
are the same it fixes both ? i.e. I need to ensure that no duplicates