能否实现 有htm 提交到 htm 如何接受呢?不会是和JSP一样 <%
request.setAttribute("Customer ID",1);
request.setAttribute("Ship To ID",2);
%>
这样接收吧
[b]问题补充:[/b]
请问能否举例一下 给出这样两个页面
例如
接收
request.getParameter("dfgdgsfg");
HTML提交到HTML?
[code="html"]
[/code]
类似这样的?
一个html向另一 个 html传值
locahost/abc.html#aa|bb|cc|dd|ee
在abc.html里你可以这么来取
var thevalue=window.location.hash.split('#')[1];
thevalue.split('|')[0];//aa
thevalue.split('|')[1];// bb
window.location.href='aa.htm#d|s'
window.frames["iframe的name"].src="aa.htm#a|b";
http://blog.csdn.net/rayleigh_w/archive/2009/05/08/4159778.aspx
有htm 提交到 htm ,以get方式提交的话,参数都跟在url后面,这样就能通过解析url来得到值了,
window.arguments[0]第一个参数