js获取页面传递参数(完整版)
function request(para){var i;var searchString=location.search;para = para.toLowerCase();searchString=searchString.toLowerCase();var pos=searchString.indexOf("?");if (pos==0){var str,str1,arr,strpos;arr=searchString.split('&');for (i=0;i<=arr.length-1;i++){str = arr[i];strpos = str.indexOf(para);if (strpos!=-1)return str.replace("?","");}}return "";}
补充:web前端 , JavaScript ,