js 项目相关

if(strUrl.indexOf(str) > -1){
aNode.onclick = function checkA(){
alert(this.href);
this.href = "/forward?alinkUrl="+this.href;
}
}

其中一个 alert(this.href)的值是   
  http://stat.readnovel.com/analytics.php?fid=91&%20pid=1&url=http://www.zubunet.com/site/magazineissue/34639.html

但是后台接受的 alinkUrl的值是
  http://stat.readnovel.com/analytics.php?fid=91

this.href = "/forward?alinkUrl="+encodeURIComponent(this.href);

String paramterReplace = paramters.replaceAll("&&", "&");
String subParamter = paramterReplace.substring(paramterReplace.lastIndexOf("?") + 1, paramterReplace.length());

 String[] target = subParamter.split("&");

原文地址:https://www.cnblogs.com/hitwtx/p/2320499.html