var url="http://www.taobao.com/index.php?key0=0&key1=1&key2=2";
function parseQueryString(url){
var str=url.split("?")[1];
var items=str.split("&");
var result={}
var arr=;
for(var i=0; i<items.length; i++){
arr=items.split('=');
result[arr[0]]=arr[1];
}
return result;
}
var obj=parseQueryString(url);
console.log(obj)