zoukankan      html  css  js  c++  java
  • 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("&");

  • 相关阅读:
    分割线
    PTA 乙级 1053 住房空置率 (20分) C/C++
    5.12 记录
    单词统计
    eclipse导入项目jdk版本不一样
    5.6日 项目回顾
    5.5 记录
    5.3 记录
    5.2 记录
    5.1 记录
  • 原文地址:https://www.cnblogs.com/hitwtx/p/2320499.html
Copyright © 2011-2022 走看看