var url = "https:www.com.163.com?item_id=123&page=999&size=20";
let arr = url.split("?");
for (let i = 0; i < arr.length; i++) {
var queryArray = arr[i].split("&");
}
var brr = [];
for (let i = 0; i < queryArray.length; i++) {
brr.push(queryArray[i].split("="));
// var brr = queryArray[i].split('=')
}
let obj = {};
brr.map(item => {
obj[item[0]] = item[1];
});
console.log(obj);