Skip to content

Commit 0103062

Browse files
committed
coding
1 parent 8a38328 commit 0103062

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
</script>
159159
</head>
160160
<body>
161-
<table width="80%" id="tableLog" cellspacing="0" class="table table-striped table-bordered"></table>
161+
<table width="80%" id="tableLog" cellspacing="0" ></table>
162162
<input type="button" value="addJson" onclick="AddJson()" />
163163
<input type="button" value="rowClick" onclick="RowClick()" />
164164
<input type="button" value="hightSingleRow" onclick="HightSingleRow()" />

YanZhiwei.JavaScript.Utilities/jquery/datatables/1.10.2/datatablesUtils.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@
435435
_rows = new Object();
436436
_table.rows().flatten().each(function (idx, i) {
437437
var _data = _table.row(idx).data();
438-
if (_data[key] === value) {
438+
if (_data[key] == value) {
439439
_rows = _table.row(idx);
440440
return false;
441441
}
@@ -472,10 +472,10 @@
472472
_table = $('#' + _id).DataTable();
473473
_table.rows().flatten().each(function (idx, i) {
474474
var _data = _table.row(idx).data();
475-
if (_data != undefined && _data[key] === value) {
475+
if (_data != undefined && _data[key] == value) {
476476
var _row = _table.row(idx);
477477
_table.row(_row).remove().draw(false);
478-
// return false;//跳出循环
478+
return false;//跳出循环
479479
}
480480
});
481481
},
@@ -491,7 +491,7 @@
491491
var _allDatas = _table.rows().data();
492492
for (var i = 0; i < _allDatas.length; i++) {
493493
var _data = _allDatas[i];
494-
if (_data[key] === value) {
494+
if (_data[key] == value) {
495495
_rowIndex = i;
496496
break;
497497
}

0 commit comments

Comments
 (0)