function GetwxUrlParam(url) { let theRequest = {}; let str; if (url.indexOf("#") != -1) { str = url.split("#")[1]; } else if (url.indexOf("?") != -1) { str = url.split("?")[1]; } if (str) { const strs = str.split("&"); for (let i = 0; i < strs.length; i++) { theRequest[strs[i].split("=")[0]] = decodeURI(strs[i].split("=")[1]); } } return theRequest; }

GetwxUrlParamurl let theRequest = ; if urlindexOf# != -1 const str = urlsplit#1; const strs = strsplit&; for let i = 0; i strsleng

原文地址: https://www.cveoy.top/t/topic/hYT2 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录