diff --git a/docs/table/index.md b/docs/table/index.md
index 274ca114..42160689 100644
--- a/docs/table/index.md
+++ b/docs/table/index.md
@@ -30,6 +30,7 @@ toc: true
| [table.renderData(id)](#table.renderData) 2.8.5+ | 重新渲染数据。 |
| [table.updateRow(id, opts)](#table.updateRow) 2.9.4+ | 更新指定行数据。 |
| [table.updateTotalRow(id, totalRowData)](#table.updateTotalRow) 2.9.4+ | 更新合计行。 |
+| [table.getTotalRow(id)](#table.getTotalRow) 2.9.4+ | 获取合计行数据。 |
| [table.checkStatus(id)](#table.checkStatus) | 获取选中行相关数据。 |
| [table.setRowChecked(id, opts)](#table.setRowChecked) 2.8+ | 设置行选中状态。 |
| [table.getData(id)](#table.getData) | 获取当前页所有行表格数据。 |
@@ -315,6 +316,21 @@ data.splice(newIndex, 0, item[0]);
table.renderData('test');
```
+
获取合计行数据 2.9.4+
+`table.getTotalRow(id);`
+- 参数 `id` : table 渲染时的 `id` 属性值
+
+```js
+// 渲染
+table.render({
+ elem: '', // 绑定元素选择器
+ id: 'test', // 自定义 id 索引
+ // 其他属性 …
+});
+
+table.getTotalRow('test');
+```
+
更新合计行 2.9.4+
`table.updateTotalRow(id, totalRowData);`
- 参数 `id` : table 渲染时的 `id` 属性值
diff --git a/src/modules/table.js b/src/modules/table.js
index 7f532542..621f1f9b 100644
--- a/src/modules/table.js
+++ b/src/modules/table.js
@@ -1482,7 +1482,8 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
var total = TOTAL_NUMS || thisTotalNum || '';
item3.field && that.dataTotal.push({
field: item3.field,
- total: $(''+ content +'
').text()
+ total: $(''+ content +'
').text(),
+ raw: total
});
// td 容器