/* Nome: Tabelas / Ajax - Exemplos Escrito por: usp.br/nds */ (function( $ ) { 'use strict'; var datatableInit = function() { var $table = $('#datatable-ajax'); $table.dataTable({ bProcessing: true, sAjaxSource: $table.data('url') }); }; $(function() { datatableInit(); }); }).apply( this, [ jQuery ]);