function getVifKey(){ return '8874f1917975b19828d2d1173e0be089&uskey=687ff7eaea4c40287eb4b410057b57e5&time=1765614300'; } $('.my_down_href').click(function(){ if($(this).attr('href').indexOf('downxia.com')>-1 && $(this).attr('href').indexOf('?key=')<=-1 && $(this).attr('href') != 'javascript:;'){ $f_key = '8874f1917975b19828d2d1173e0be089&uskey=687ff7eaea4c40287eb4b410057b57e5&time=1765614300'; if($f_key != '')$(this).attr('href',$(this).attr('href')+'?key='+$f_key); $obj = $(this); setTimeout(function(){ $obj.attr('href',$obj.attr('href').split('?key')[0]) },100); } }); $('.dxDownAddress,.list-down li a').click(function(){ if($(this).attr('href').indexOf('downxia.com')>-1 && $(this).attr('href').indexOf('?key=')<=-1 && $(this).attr('href') != 'javascript:;'){ $f_key = '8874f1917975b19828d2d1173e0be089&uskey=687ff7eaea4c40287eb4b410057b57e5&time=1765614300'; if($f_key != '')$(this).attr('href',$(this).attr('href')+'?key='+$f_key); $obj = $(this); console.log($(this).attr('href')); setTimeout(function(){ $obj.attr('href',$obj.attr('href').split('?key')[0]) },100); } });