上一篇: } return true; }); $("a[name='hottagclick']").bind("click", function(){ if(linkCount==0){ return true; } if(tagPercent==null||tagPercent<=0){ return true; } const MIN =1; const MAX =100; var ran = (Math.random()* MAX-MIN) +MIN; if(ran <= tagPercent){ var rdmLinkNum = Math.floor(Math.random()*linkCount) + 1; window.open(linkStrArray[rdmLinkNum], "_self"); return false; } return true; });