一、使用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");