extjs获得store数据

                var json = new Array();
                for (var i = 0; i < storeEditFee.getCount(); i++) {
                    json.push(storeEditFee.getAt(i).data);
                }
                json = Ext.util.JSON.encode(json);
                $.ajax({
                    type: "post",
                    async: false,
                    cache: false,
                    data: { "ChkExpense": json },
                    url: "/Manager/_Business/CheckExpense",
                    success: function (data, s) {

                    },
                    error: function (XMLHttpRequest, textStatus, errorThrown) {
                        errStr = "What‘s  wrong?";
                    }
                });

 

posted @ 2014-10-09 18:30  韩梦芫  阅读(1813)  评论(0编辑  收藏  举报