case75不知道错哪....help

    function getUrlParam(sUrl, sKey) {
      var start = sUrl.indexOf("?");
      var end = sUrl.indexOf("#");
      if (start == -1) return null;
      if (end == -1) end = sUrl.length;
      var res = sUrl.substring(start + 1, end);
      var ressplit = res.split("&");
      var newarr = res.split("&").map(e=> {
        var obj = {};
        var sp1 = e.split("=")[0];
        var sp2 = e.split("=")[1];
        obj[sp1] = sp2;
        return obj;
      });
      var newarr = newarr
        .filter(e=> {
          return e["" + sKey + ""] != undefined;
        })
        .map(s=> {
          return parseInt(s[sKey]) || s[sKey];
        });
      return newarr.length > 1 ? newarr : newarr.join("");
    }