getUrlParams
Wed Apr 12 2023 09:26:35 GMT+0000 (Coordinated Universal Time)
Saved by
@hjs
function getUrlParams() {
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const params = {};
for (const [key, value] of urlParams.entries()) {
params[key] = value;
}
return params;
}
const urlParams = getUrlParams();
console.log(urlParams);
content_copyCOPY
http://1588.tech/
Comments