码迷,mamicode.com
首页 > 其他好文 > 详细

Ext.store.load callback

时间:2014-10-10 13:30:24      阅读:219      评论:0      收藏:0      [点我收藏+]

标签:io   ar   for   sp   on   cti   ad   bs   tt   

var paramsReceivable = {};
                paramsReceivable.querytext = Ext.getCmp(‘hiddquerytext‘).getValue();
                gridReceivable.store.load({
                    params: paramsReceivable,
                    callback: function (r, options, success) {
                        var heji = 0;
                        for (var i = 0; i < r.length; i++) {
                            var record = r[i];
                            heji += record.data.heji;
                        }
                        Ext.getCmp(‘lblheji‘).setText(heji);


                        //Math.round(heji)//四舍五入
                        //Math.floor(heji)//取整数
                        Ext.getCmp(‘lblheji‘).setText("¥"+heji.toFixed(2));
                }
                });

Ext.store.load callback

标签:io   ar   for   sp   on   cti   ad   bs   tt   

原文地址:http://www.cnblogs.com/hofmann/p/4015346.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!