小李肥肥 2016-07-13 08:47 采纳率: 40%
浏览 1201
已采纳

ext 处理后台传过来的json

代码如下:

Ext.Ajax.request({
url:'http://localhost:8080/robot/robotcheck/getTaskList.hs',
method:'post',
success:function(data){
var jsonobj = eval('(' + data.responseText + ')');
alert(data.responseText + "111");
alert(data.rows + "222");
}
});

 data里的内容如下:
     {"rows":[{"startTime":"2016-06-22 14:47:59.0","bdzName":"殿跟变","areaName":"500kV设备区","taskId":784,"dwName":"国网宁波供电公司","robotId":1,"taskName":"殿跟变33例行巡视20160621","robotStatus":1,"dianchi":"220KV/1200KV","sumCounts":1,"hwCounts":0,"gqCounts":1,"alarmCounts":1},{"startTime":"2016-06-22 14:48:28.0","bdzName":"殿跟变","areaName":"500kV设备区","taskId":787,"dwName":"国网宁波供电公司","robotId":1,"taskName":"殿跟变66例行巡视20160621","robotStatus":1,"dianchi":"220KV/1200KV","sumCounts":1,"hwCounts":0,"gqCounts":1,"alarmCounts":1}],"totalCount":7}
    现在我想取rows里的值,我上面alert里的写法都不行,求大神指教,谢谢
  • 写回答

4条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 在线教育培训平台,主要以点播视频和在线练习测试为主,除将视频做切片外,有其他哪种方式降低流量?(关键词-带宽速率)
      • ¥20 用c语音或c++实现银行叫号系统
      • ¥15 人工智能 规则正向演绎和推理
      • ¥20 基于STM32F401的电子密码锁设计
      • ¥15 famamacbeth回归中遇到only size-1 arrays can be converted to Python scalars,求解答
      • ¥15 单片机多个自锁按键的编程实践
      • ¥15 用python操作redis存储中文后,再取出的数据变成了乱码怎么办?
      • ¥15 C语言简单排序问题有偿求解
      • ¥20 请问图片的代码什么意思
      • ¥15 coq问题求带,有偿