日期:2014-05-16 浏览次数:20399 次
<script> function getParam(paramname) { var returnval = ""; try { //参数字符串 var paramurl = window.location.search; //处理长度 if (paramurl.length > 0) { paramurl = paramurl.substring(1, paramurl.length); var paramurlarray = paramurl.split("&"); for ( var i = 0; i < paramurlarray.length; i++) { if (paramurlarray[i].indexOf(paramname) != -1) { var temp = paramurlarray[i].split("="); if (temp[0] == paramname) { returnval = temp[1]; break; } } } } } catch (e) { } return returnval; } </script>