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;
}
});
<iframe src="../../page/studentInfo.jsp" id="student" ></iframe>
2、子页面接受父页面的参数
var params = {
'date':'{param.date}',
'stuNo':{param.stuNo}
};