File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
YanZhiwei.JavaScript.Utilities/jquery/datatables/1.10.2 Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 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() " />
Original file line number Diff line number Diff line change 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 }
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 } ,
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 }
You can’t perform that action at this time.
0 commit comments