jQuery easyui-datagrid 绑定json数据的问题,后台获取到了json格式的数据,下面是后台输出的json格式数据
[{"total":25,"success":true,"rows":[{"ajaxResMsg":"","createDate":"2013","description...
[{"total":25,"success":true,"rows":[{"ajaxResMsg":"","createDate":"2013","description":"","levelNO":2,"levelName":"ss","modifyDate":"2014","operators":[],"parentNO":0,"relAuthLevels":[],"visible":0}]
怎么在前台数据就是不显示,这是什么问题啊? 展开
怎么在前台数据就是不显示,这是什么问题啊? 展开
2个回答
展开全部
{"total":25,"success":true,"rows":[{"ajaxResMsg":"","createDate":"2013","description":"","levelNO":2,"levelName":"ss","modifyDate":"2014","operators":[],"parentNO":0,"relAuthLevels":[],"visible":0}
不要最外层的[];
不要最外层的[];
追问
这个[]是直接通过json对象的方法转化而来的,该怎么取消啊
追答
你什么 转化的, 后台不好改 ,那你 前台获取数据 时 取 假设是data 那就用 data[0] 即可
展开全部
JSON格式不对吧
更多追问追答
追问
格式不是这样吗,那是怎么样的?我是直接用JSONArray这个类转换的
追答
[{"total":25,"success":true,"rows":[{"ajaxResMsg":"","createDate":"2013","description":"","levelNO":2,"levelName":"ss","modifyDate":"2014","operators":[],"parentNO":0,"relAuthLevels":[],"visible":0}]
这段肯定是不对的后面再加个}]
[{"total":25,"success":true,"rows":[{"ajaxResMsg":"","createDate":"2013","description":"","levelNO":2,"levelName":"ss","modifyDate":"2014","operators":[],"parentNO":0,"relAuthLevels":[],"visible":0}]}]
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询