送你一朵小红花丶 2020-09-11 15:13 采纳率: 0%
浏览 367

jsp页面,接收java后台返回的Map<Integer,List<String>>类型的集合,以json格式返回,该怎么遍历获取

前台用ajax请求java后台,后台返回一个Map类型的集合,以json格式返回的,

Map<Integer,List<String>> m=new HashMap<Integer,List<String>>()
out.print(JSON.parse(JSON.toJSONString(m,true)));

我想在前台的ajax里面获取到数据,应该怎么写,求助!!

  • 写回答

1条回答 默认 最新

  • lzy66666 2020-09-11 15:43
    关注

    前端把接收到的json串转回对象,再遍历

    评论

报告相同问题?