如何将extjs中的from json响应中的值分组
如何在下面的响应中使用curMon值求和curValue,PreVal e、 g curMon如何将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,
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
。您知道总和是什么意思吗?