ExtJs Store to Json convert
getJsonDataForStore: function(store){
var data = new Array();
var result = "";
var records = store.getRange();
for (var i = 0; i < records.length; i++) {
data .push(records[i].data);
}
result = Ext.JSON.encode(data );
return result ;
},
var data = new Array();
var result = "";
var records = store.getRange();
for (var i = 0; i < records.length; i++) {
data .push(records[i].data);
}
result = Ext.JSON.encode(data );
return result ;
},
댓글
댓글 쓰기