function count() {
var rows = $('#dg'').datagrid('getRows')//获取当前页的数据行
var total = 0;
for (var i = 0; i < rows.length; i++) {
total += rows[i]['SCORE']; //获取指定列
}
alert(total);
}
转载于:https://www.cnblogs.com/huangf714/p/5898910.html
function count() {
var rows = $('#dg'').datagrid('getRows')//获取当前页的数据行
var total = 0;
for (var i = 0; i < rows.length; i++) {
total += rows[i]['SCORE']; //获取指定列
}
alert(total);
}
转载于:https://www.cnblogs.com/huangf714/p/5898910.html