0
我有从一个php文件进来的JSON响应,JSON响应看起来如下结果:如何将json响应复制到extjs中的数组中?
[
{
"header": "Client ID",
"dataindex": "clientID"
},
{
"header": "Client Name",
"dataindex": "clientName"
},
{
"header": "Progress Bar",
"dataindex": "progressBar"
}
]
现在我想这个数据复制到以下述方式的阵列 变种allColumns = [];
//loop through the json response
var singleColumn = [];
singleColumn['header'] = Client ID from the json response whose key is header
singleColumn[dataindex'] = clientID from the json response whose key is header.
请注意:我需要做的是extjs3。