zoukankan      html  css  js  c++  java
  • js获取URl传递的参数

    //获取url参数
    function GetQueryString(sProp) {
    var re = new RegExp("[&,?]" + sProp + "=([^&]*)", "i");
    var a = re.exec(document.location.search);
    if (a == null)
    return "";
    return a[1];
    }

  • 相关阅读:
    杭电2042
    杭电2041
    杭电2040
    杭电2046
    SPOJ
    SPOJ
    SPOJ
    HDU
    HDU
    HDU
  • 原文地址:https://www.cnblogs.com/tong775131501/p/4107497.html
Copyright © 2011-2022 走看看