.hover-color {
background-color: #f5f5f5;
}
$(document).on('mouseenter', '.layui-table tbody tr', function() {
$(this).addClass('hover-color');
}).on('mouseleave', '.layui-table tbody tr', function() {
$(this).removeClass('hover-color');
});