function Request(key) {
        var url = window.location.href;
        var pos = url.indexOf("?");
        var allValues = url.substr(pos + 1);
        var tmpValues = allValues.split("&");
        for (var i = 0; i < tmpValues.length; i++) {
            var tmpValue = tmpValues[i].split("=");
            if (tmpValue != null && tmpValue.length > 0) {
                if (tmpValue[0].toLowerCase() == key.toLowerCase()) {
                    try {
                        return tmpValue[1];
                    } catch (e) {
                        return "";
                    }
                }
            }
        }
        return "";
    }

 

相关文章:

  • 2021-09-21
  • 2021-09-01
  • 2022-01-23
  • 2022-01-07
  • 2022-01-08
猜你喜欢
  • 2021-12-10
  • 2021-06-02
  • 2021-04-18
  • 2021-11-11
相关资源
相似解决方案