JavaScript obtenga token de la cadena de consulta
const urlParams = new URLSearchParams(queryString);
Scary Stork
const urlParams = new URLSearchParams(queryString);
const queryString = window.location.search;
console.log(queryString);
// ?product=shirt&color=blue&newuser&size=m