我想为 StudentDetailsVo 列表项分配对象。
我不断收到此错误。
$("#searchAtten").click(function(){
$("#tablerows").empty();
var sectionId=$("#selSection :selected").attr("id");
var studid=$("#studentid").val();
var datee = ${resultVO.monthEndDate}
var reqD = ${resultVO.reqdEndDate}
//I need to assign object here
var namem =${resultVO.studentList}
alert("namem"+namem);
var betweentDate= reqD-datee;
alert("betweentDate = "+betweentDate);
for(var i=1;i<=datee;i++){
alert(i);
$("#tableRows tr").append('<th width="129" scope="col" style="text-align: center;">'+i+'</th>');
}
if(sectionId == undefined)
{
sectionId = "null";
}
if(studid == "")
{
studid = "null";
}
fetch_atten(sectionId,studid);
});
});
我从 VO 文件中获取这个值:
<% if (session.getAttribute("resultVO") != null){
AttendanceResultVO resultVO= (AttendanceResultVO)session.getAttribute("resultVO");
}
%>
**> 我的火灾错误错误是:
SyntaxError: missing ] after element list [Break On This Error] var namem =[com.sfmfm.vo.StudentDetailsVO@487c5f] myschool.jsp (line 53, col 43)**