📅  最后修改于: 2022-03-11 15:04:24.836000             🧑  作者: Mango
const queryString = new URLSearchParams(props.location.search);
//or
var queryString = Object.keys(params).map(key => key + '=' + params[key]).join('&');
//Extracting query String key value pairs
for (let param of queryString.entries()) {
console.log(param);
}