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));
                }
                });

相关文章:

  • 2022-02-07
  • 2021-10-09
  • 2021-12-20
  • 2021-07-27
  • 2021-12-25
  • 2021-07-31
  • 2021-09-06
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2021-07-17
相关资源
相似解决方案