$ (document). On ("click", ". Layui-table-body table.layui-table tbody tr", function () {
var obj = event? Event.target:event.srcElement;
var tag = Obj.tagname;
var checkbox = $ (this). Find ("TD Div.laytable-cell-checkbox Div.layui-form-checkbox I");
var dataindex = $ (this). attr ("Data-index");
if ($ (this). Parents (". Layui-table-fixed"). Length>0) {
if (checkbox.length!=0) {
if (tag = = ' DIV ') {
Checkbox.click ();
}
}
}else{
var checkbox1=$ (this). Parents (". Layui-table-body"). Next (). Find (". Layui-table-body table.layui-table tbody tr[ data-index= "+dataindex+"). Find ("TD Div.laytable-cell-checkbox Div.layui-form-checkbox I");;
if (checkbox1.length!=0) {
if (tag = = ' DIV ') {
Checkbox1.click ();
}
}
}
});
$ (document). On ("Click", "TD Div.laytable-cell-checkbox Div.layui-form-checkbox", function (e) {
E.stoppropagation ();
});
Layerui How to click on the table row to have the check selected and the check box can be checked to select this event.