url = "https://github.com/kk?tab=stars&assetId=311&page=DETAIL&projectPhase=2";
function params(url) {
const search = window.location.search;
search = search.substr(1, search.length);
const res = {};
if (!search) return res;
search.split('&').map(item => {
const [key, value] = item.split('=');
res[key] = decodeURIComponent(value);
});
return res;
}