<script type="text/javascript"> var url = '?qq=0&ADUIN=564676845&ADSESSION=1344819405&ADTAG=CLIENT.QQ.4735_.0' || location.search; var getInfo = []; if(url.length>1){ var ls =url.substring(1); var namevlue = ls.split('&'); for(var i = 0 ; i< namevlue.length; i++){ var data = namevlue[i].split('='); getInfo[data[0]]= data[1]; } } var s = ''; for( var el in getInfo){ s+= el+":"+ getInfo[el] + '\n'; } console.log(s.toLowerCase()); </script>