开发者

jQuery DataTables Plugin Callback

I need to cache the html of the table before applying DataTable plugin. I used to do it by caching the html and after it applying the plgin:

v开发者_JAVA技巧ar originalTableHtml = escape($('#DataTable').parent().html());
$('#DataTable').dataTable(DataTableOpts);

However, now I need to do it somehow in another to do it. Is there any way to apply a callback "on DataTable Init"..?

Thanks


I have solved it by editing the plugin and creating a "before init" callback.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜