基本思路:得到标题栏地址,自己把要的参数取出来.. 帮顶一下 location.search JScript code: <script type="text/javascript"> <!-- var a = <%=request.getParameter("A")%>; var b = <%=request.getParameter("B")%>; var c = <%=request.getParameter("C")%>; //--> </script>
js + jsp 写法 JScript code:
var url = location.href;
alert(url.substring(url.lastIndexOf('/')+1))
//获取标题栏地址 var path=Window.location.href; 然后可用split()方法分割取得你想要的东西 up 第一种 正则表达式 JScript code: function QueryString(item){ var sValue=location.search.match(new RegExp("[\?\&]"+item+"=([^\&]*)(\&?)","i")) return sValue?sV