一个页面中引入另一个页面<%@ include file="/jsp/caissa/localsupply/team/teamschedule/teamscheduledetailallPage.jsp"%>
teamscheduledetailallPage.jsp下面是显示数据方法
$(document).ready(function(){
TeamscheduleBs.findTeamscheduleListByDBID('<%=teamdbid%>',function(data){
var text='';
for(var i=0;i<data.length;i++){
var y=data[i].scheduledate.split("-");//用于获取对应星期
var d=new Date(y[0],parseInt(y[1])-1,y[2]);
var weekDays = new Array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat");
text=text+'<tr οnclick="resourceOrder('+i+');"><td class="con" width="4%" align="center"><%=RmLanguageHelper.getValue(request,"teamscheduledetailallPage.jsp.resultConditionForm.numbers") %>'+data[i].datenumber+'<%=RmLanguageHelper.getValue(request,"teamscheduledetailallPage.jsp.resultConditionForm.day") %></td>'
+'<td class="con" width="5%" align="center">'+data[i].scheduledate+' '+weekDays[d.getDay()]+'<input type="hidden" id="scheduledate'+i+'" value="'+data[i].scheduledate+' '+weekDays[d.getDay()]+'" ></td>';
text=text+'<td class="con" width="5%" align="center">'+data[i].todaySchedule+' <input type="hidden" id="schedulecitydbid'+i+'" value="'+data[i].leacitydbid+','+data[i].arrcitydbid+'"> <input type="hidden" id="schedulecityname'+i+'" value="'+data[i].todaySchedule+'"></td></tr>'
}
$("#tbody").html(text);
});
})