使用avaScript获取Url中的指定参数值
JavaScript方法:
QQ:991278778
1 function getLocationParameter(param) {
2 var request = {
3 QueryString: function(val) {
4 var uri = window.location.search;
5 var re =new RegExp(""+ val +"=([^&?]*)", "ig");
6 return ((uri.match(re)) ? (decodeURI(uri.match(re)[0].substr(val.length +1))) : '');
7 }
8 }
9 return request.QueryString(param);
10}