一、使用URLSearchParams:
// https://www.?????????.com/xxx?objectType=xxx&keyword=xxx
var urlParams = new URLSearchParams(decodeURIComponent(window.location.search));
var objectType = urlParams.get("objectType");
var type = urlParams.get("keyword");
一、使用URLSearchParams:
// https://www.?????????.com/xxx?objectType=xxx&keyword=xxx
var urlParams = new URLSearchParams(decodeURIComponent(window.location.search));
var objectType = urlParams.get("objectType");
var type = urlParams.get("keyword");