http://www.zzlanchuang.com/basic.html?abc=2#function
<script type="text/javascript">var name = GetQueryString("name");
var abc= GetQueryString("abc");
console.log("abc= "+abc);
function GetQueryString(name) {
var reg =new RegExp("(^|&)"+ name +"=([^&]*)(&|$)");
var r = window.location.search.substr(1).match(reg);
if (r !=null)
return decodeURI(r[2]);
returnnull;
}
</script>