首页 新闻 会员 周边

js如何获取 model.addAttribute("tapes", tapes); 的 tapes?

1
悬赏园豆:5 [已关闭问题] 关闭于 2017-07-03 16:27

前端执行函数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);

   ...

 }

}

duxiaohe的主页 duxiaohe | 初学一级 | 园豆:194
提问于:2017-07-03 16:20
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册