编程知识 cdmana.com

If there are too many operation buttons in the layui list, the button listening event will be invalid

problem :

stay layui table in , When there are too many buttons in the operation bar , Will automatically hide , Click the pop-up hide button , The button itself is bound to invalid listening events . Pictured :

 

The solution is as follows :

Paste the following code into the relevant page :

$(document).off('mousedown', '.layui-table-grid-down').  on('mousedown', '.layui-table-grid-down', function (event) {   table._tableTrCurrr = $(this).closest('td');  }); $(document).off('click', '.layui-table-tips-main [lay-event]').  on('click', '.layui-table-tips-main [lay-event]', .........

版权声明
本文为[Irving the procedural ape]所创,转载请带上原文链接,感谢

Scroll to Top