没分了,请好心人帮帮忙,如何将JScript中的值传给下一个jsp页面?
function td_click(t_object)
{
var t_d
if (parseInt(t_object.innerHTML,10)> =1 && parseInt(t_object.innerHTML,10) <=31 )
{ t_d=new Date(cele_date_year.value,cele_date_month.value-1,t_object.innerHTML)
if (t_d <=date_end && t_d> =date_start)
{
var year = cele_date_year.value;
var month = cele_date_month.value;
var day = t_object.innerHTML;
if (parseInt(month) <10) month = "0 " + month;
if (parseInt(day) <10) day = "0 " + day;
g_object.value=year+separator+month+separator+day;//如何将g_object.value的值传给下一个JSP页面?或者送给变量让下面的jsp页面调用
+ "/guestroom_taking_report.jsp ");
window.cele_date.style.display= "none ";};
}
--------------
问题:g_object.value=year+separator+month+separator+day;//如何将g_object.value的值传给下一个JSP页面?或者送给变量让下面的jsp页面调用
------解决方案--------------------var url = 'xxx.jsp?value= ' + g_object.value;
document.location.href = url;