前端执行函数diskdownload然后
alert("o.physical_tape_id: "+o.physical_tape_id);
这句结果为: undefined
后台:
List<Tape> tapes = new ArrayList<Tape>();
...
model.addAttribute("tapes", tapes);
js:
function diskdownload(){
var tapeslist='${tapes}';
$.each(tapeslist,function(i,o) {
alert("into each.............."+i);
alert("o.physical_tape_id: "+o.physical_tape_id);
...
}
}