function getUrlParam(sUrl, sKey) { let arr = sUrl.split("?")[1].split("#")[0].split("&"); const obj = {}; arr.forEach((item) => { const subObj = item.split("="); if (!Object.keys(obj).includes(subObj[0])) { obj[subObj[0]] = subObj[1]; } else { obj[subObj[0]] = [....