datatables之翻页、搜索、排序事件

$(document).ready(function() {
    $('#table').on('order.dt',
	    function() {
	        console.log('排序');
	    }).on('search.dt',
	    function() {
	    	console.log('搜索');
	    }).on('page.dt',
	    function() {
	    	console.log('翻页');
    }).dataTable();
});

  

posted @ 2017-03-14 22:13  hapday  阅读(4414)  评论(1编辑  收藏  举报