JSP父页面传参数到子页面及接收示例
1、父页面传参数到子页面 代码如下: //JavaScript代码 $.ajax({ type:”POST”, uri:”../student/studentInfo.action”, data:{ “date”:date, “stuNo”:stuNo }, success:function(data){ var params = “?date=”+date+”&stuNo=”+stuNo; var action = ‘../../page/studentInfo.jsp?’+params; dojo.byId(“student”).src = action; } }); 代码如下: &
用户评论