使用dwr返回的是List,List里是Map

来源:百度知道 编辑:UC知道 时间:2024/05/17 06:54:28
使用dwr返回的是List,List里是Map,如何取出Map里的值?
我要的是JavaScript代码,现在list已经在JavaScript里了

集合套集合啊,嵌套取出可以么?
如果你的集合叫list
for(Map xx:list){
for(Object o:xx.keySet){//或者拿到EntrySet迭代,getKey,getValue

Sysetem.out.println("key:\t"+o+"value:\t"+xx.get(o));

}

}