- 注册时间
- 2013-2-21
- 最后登录
- 2013-2-21
- 阅读权限
- 10
- 积分
- 12
- 精华
- 0
- 帖子
- 4
|
1、我根据demo自己写了一个,我底层用的是springmvc框架,对于json的处理都没有变,相当于只是将service和dao用java类来实现
这是我修改demo后返回的json数据:
{"total":35,"maxAge":37,"minAge":24,"data":[{"position":"js3","birthday":"1987-06-12T00:00:00","remarks":"","city":"","country":"","createtime":"2000-11-10T01:01:01","id":"54b12a07-1f7d-4616-b3e9-9dcc465a5f33","loginname":"13625147852@163.com","dept_id":"js","school":"南京邮电学院","married":0,"email":null,"age":25,"name":"张鹏楠","educational":"2","gender":1,"salary":"3230"}
在这个返回值里面中文是好的,但是到了页面显示的时候,中文都成??了,请问该如何解决。
2、并且不明白
<div id="datagrid1" class="mini-datagrid" style="width:100%;height:100%;"
url="SearchEmployees" idField="id"
sizeList="[5,10,20,50]" pageSize="10"
>
中是如何解析json的
请大牛帮忙解答,先谢谢了。
|
|