How to retrieve JSON Data Array from ExtJS Store

后端 未结 15 2189
忘掉有多难
忘掉有多难 2020-12-04 17:04

Is there a method allowing me to return my stored data in an ExtJS Grid Panel exactly the way I loaded it using:

var data = [\"value1\", \"value2\"]
Store.lo         


        
15条回答
  •  北荒
    北荒 (楼主)
    2020-12-04 17:33

    Here is another simple clean way:

    var jsonArr = [];
    grid.getStore().each( function (model) {
        jsonArr.push(model.data);
    });
    

提交回复
热议问题