SOURCE

function getQueryStringArgs() {
  var qs = (location.search.length>0 ? location.search.substring(1) : "" ),
  		Args = {},
      items = qs.length? qs.split("&") : [],
      item = null,
      name = null,
      value = null,
      len = items.length;
  for(i=0;i<len;i++) {
    item = items[i].split("=");
    name = decodeURIComponent(item[0]);
    value = decodeURIComponent(item[1]);
    if(name.length) {
      Args[name] = value;
    }
  }
	return Args;
}
console 命令行工具 X clear

                    
>
console