标签:
$(document).ready(function() { var eventFired = function(type) { var n = $(‘#demo_info‘)[0]; n.innerHTML += ‘<div>‘ + type + ‘ 事件- ‘ + new Date().getTime() + ‘</div>‘; n.scrollTop = n.scrollHeight; } $(‘#example‘).on(‘order.dt‘, function() { eventFired(‘排序‘); }).on(‘search.dt‘, function() { eventFired(‘搜索‘); }).on(‘page.dt‘, function() { eventFired(‘翻页‘); }).dataTable(); });
标签:
原文地址:http://www.cnblogs.com/chengshuiqiang/p/4607228.html