标签:
function GetQueryString(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(r!=null)return unescape(r[2]); return null; } var name = GetQueryString("name"); console.log(name)
标签:
原文地址:http://www.cnblogs.com/smjia/p/5629397.html