js向所有a链接插入参数

$('a').attr('href',function(i, attr) {
  return attr + '?isman='+hash102;
});
原文地址:https://www.cnblogs.com/linyusong/p/7479871.html