//example page is here : http://localhost:8080/?uid=1&nid=12#/
function getUrlParam() {
let params = {};
let parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
params[key] = value;
});
return params;
}
let loluid = getUrlParam()['uid'];
if(loluid == '1') {
alert(`uid ${loluid} is here`);// output as uid 1 is here
}