Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何将extjs中的from json响应中的值分组_Extjs_Extjs4.1_Sencha Architect - Fatal编程技术网

如何将extjs中的from json响应中的值分组

如何将extjs中的from json响应中的值分组,extjs,extjs4.1,sencha-architect,Extjs,Extjs4.1,Sencha Architect,如何在下面的响应中使用curMon值求和curValue,PreVal e、 g curMonjan=23.4567+2045671+2045671 { "responseJSON":{ "months":9, "rows":{ "rowCount":93, "row":[ { curMon:"Jan", curVal:23.4567,

如何在下面的响应中使用curMon值求和curValue,PreVal e、 g curMon
jan=23.4567+2045671+2045671

{
   "responseJSON":{
      "months":9,
      "rows":{
         "rowCount":93,
         "row":[
            {
               curMon:"Jan",
               curVal:23.4567,
               preVal: 33.5677

            },
            {
             curMon:"Feb",
               curVal:423.78482878,
               preVal: 460.57905554 
            },
            {
              curMon:"Jan"
               curVal:2045671,
               preVal:305678

            },
            {
             curMon:"Feb",
               curVal:26789.20,
               preVal: 24567.20   
            },
            {
              curMon:"Jan",
               curVal:2045671,
               preVal:305678
            },
            {
               curMon:"Feb",
               curVal:26789.20,
               preVal: 24567.20   
            },
            {
               curMon:"Mar",
               curVal:26789.20,
               preVal: 24567.20   
            },
            {
               curMon:"Feb"
               curVal:26789.20,
               preVal: 24567.20   
            },
            {
               curMon:"Jan"
               curVal:2045671,
               preVal:305678

            },
            {
               curMon:"Mar",
               curVal:26789.20,
               preVal: 24567.20  
            },
            {
             curMon:"Feb"
               curVal:26789.20,
               preVal: 24567.20     
            },
            {
              curMon:"Jan",
               curVal:2045671,
               preVal:305678 
            },
            {
             curMon:"Mar",
               curVal:26789.20,
               preVal: 24567.20  
            }
         ]
      }
   }
}

您的每个响应记录都必须具有明确的idProperty。我喜欢响应是JSON的方式,但它的标签是
responseXML
。您知道总和是什么意思吗?