xiaoqi742709106
function getQueryStringByName(name) {
    var result = location.search.match(new RegExp("[\?\&]" + name + "=([^\&]+)", "i"));
    if (result == null || result.length < 1) {
        return "";
    }
    return result[1];
}

 例如: 

Response.Redirect("/Questions/Activities/ReportGeneration.aspx?Id=" + Id + "&scale_bId=" + scale_bId);

JS里面直接可以取出路径后面滴参数   getQueryStringByName("Id");

 

分类:

技术点:

相关文章:

  • 2021-06-22
  • 2021-11-27
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-24
  • 2021-09-28
  • 2021-11-27
  • 2021-12-08
相关资源
相似解决方案