<script>
console.log(getUrlArr());
function getUrlArr() {
var arr = [];
var url = "http://192.1.1.1:1111/test.html?a=1&b=2&c=3&d=4";
var str = url.split("?")[1];
var arr1 = str.split("&");
for (var i = 0; i < arr1.length; i++) {
var value = arr1[i].split("=")[1];
arr.push(value);
}
return arr;
}
</script>