var url = "https://www.zowlsat.com?cid=1&state=false";
const getUrlQuery = (url) => {
    var query = url.split("?")[1]; // 根据“?”切割数组,截取“?”之后的字符串
    var vars = query.split("&"); // 根据“&”切割成数组
    var result = new Object();
    for (var i = 0; i < vars.length; i++) {
        var pair = vars[i].split("=");
        result[pair[0]] = pair[1];
    }
    return result;
};
console.log(getUrlQuery(url)); // 取值
// { cid: '1', state: 'false' }