Skip to content

Commit 0515700

Browse files
committed
整理代码。
1 parent d01d8d7 commit 0515700

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

YanZhiwei.JavaScript.Utilities/jquery/datatables/1.10.2/datatables.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,20 +102,18 @@
102102
function getRowByParam() {
103103
var table = $('#tableLog').dataTable();
104104
var _row = table.getRowByParam('time', '2015-10-11');
105-
106-
_row.data.time = '2015-10-22';
105+
_row.data().time = '2015-10-22';
107106
$('#tableLog').DataTable().draw();
108107
}
109108
function deleteRowByParam() {
110109
var table = $('#tableLog').dataTable();
111110
table.deleteRowByParam('time', '2015-10-11');
112-
113111
}
114112
function getRowIndexByParam() {
115113
var table = $('#tableLog').dataTable();
116114
var _rowIndex = table.getRowIndexByParam('time', '2015-10-13');
117115
if (_rowIndex >= 0) {
118-
116+
// var _row = $('#tableLog').DataTable().row(_rowIndex);
119117
table.updateRowByIndex(_rowIndex, { "time": "2015-10-22", "log": "test", "status": "不正常" });
120118
}
121119
}

0 commit comments

Comments
 (0)