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("&");

相关文章:

  • 2021-10-16
  • 2021-11-22
  • 2021-10-19
  • 2021-11-01
  • 2021-08-17
  • 2021-05-02
  • 2022-12-23
猜你喜欢
  • 2021-12-16
  • 2021-11-04
  • 2021-10-30
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案