jquery 遍历表格hover事件 td 操作

 1、 例子:$("#inventory-list").on('mouseleave','.showInfo',function(){  
                     $(this).tooltip('hide');
                    })  

其中 #inventory-list为表格的ID,mouseleave为离开事件,showInfo为td的类,  $(this).tooltip('hide')为鼠标离开 showInfo元素时,执行的操作

猜你喜欢

转载自blog.csdn.net/weixin_42394615/article/details/81387669