67,513
社区成员
发帖
与我相关
我的任务
分享
/**
* 获取所有时段集合
* @author shijing
* 2015年8月11日下午6:05:37
* @return
*/
@RequestMapping(value="/getAllTimeList", method=RequestMethod.GET)
@ResponseBody
public Object getAllTimeList(){
//获取所有时段集合
List<TimeIntervalBO> allTimeList = meetingScheduleService.getAllTimeList();
return allTimeList;
}
然后js里面获取的就是一个list对象,而不是json[/quote]
我现在返回的是Map,每个Map存的是List,怎么在jsp页面中呈现这些数据?除了拼接html字符串还有其他方法吗,我的页面内容比较多,如果完全用拼接字符串后期不好维护。/**
* 获取所有时段集合
* @author shijing
* 2015年8月11日下午6:05:37
* @return
*/
@RequestMapping(value="/getAllTimeList", method=RequestMethod.GET)
@ResponseBody
public Object getAllTimeList(){
//获取所有时段集合
List<TimeIntervalBO> allTimeList = meetingScheduleService.getAllTimeList();
return allTimeList;
}
然后js里面获取的就是一个list对象,而不是json