requirejs & datatable
requirejs & datatable
sadmark
Posts: 1Questions: 1Answers: 0
while I were using requirejs and dataTables to build a website, I got some problem.
I went to see the source code about datatables.
if ( typeof define === 'function' && define.amd ) {
// AMD
define( ['jquery', 'datatables.net'], function ( $ ) {
return factory( $, window, document );
} );
}
where can I find the 'datatables.net' module?
I find all dirs but failed.
Could you show me the way?
thank you.
This discussion has been closed.
Answers
You need to use your Require config to specify where the
datatables.net
module is. For example:Allan