统计
$("#LeiJiId").click(function () {
var ZongJine = 0;
var ChuKuSum = tabCangKu.getAllRecords();
for (var i = 0; i < ChuKuSum.length; i++) {
ZongJine += parseFloat(ChuKuSum[i].ToteSum);
}
layer.open(
{
content: ’ 总金额: ’ + ZongJine.toFixed(2) +’ 元’,
title: ‘叠加’, area: [‘100px’, ‘50px’],
});
});