实现的ajax,List<MsgList> list=new ArrayList<MsgList>();JSONArray ja=JSONArray.fromObject(list);MsgList中含有date属性{"content":"dwdewed","date":{"date":10,"day":2,"hours":18,"minutes":58,"month":11,"nanos":0,"seconds":23,"time":1386673103000,"timezoneOffset":-480,"year":113},"employeeId":2,"id":22,"number":"3214","title":"z"}这个是服务器传过来的json数据
2 回答
一只斗牛犬
TA贡献1784条经验 获得超2个赞
里再后台往前台传数据的时候不对吧,你直接传递一个字符串,而不是date对象就好了吧。
不过这样也可以弄,取出year-month-day hours:minutes:seconds。取完了之后自己拼个字符串也行。
不会是没有用过json吧?
添加回答
举报
0/150
提交
取消