Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户单击 jquery 数据表中的分页链接时,我想调用 java 脚本函数。
我怎样才能做到这一点?
您可以使用page事件,它在页面更改后触发。page数据表初始化后的绑定事件:
page
$('#table_instance').dataTable({some attributes}); $('#table_instance').bind('page', function () { //call some function here });