Applicazione corrente, qualcuno ha utilizzato require-jquery.js. Ora ho implementato la tabella di dati jQuery. Funziona bene quando si rimuove "require-jquery.js". Ma quando includo require-jquery.js sto ottenendo l'errore sotto:conflitto di tabelle di dati con require-jquery.js
Error: Mismatched anonymous define() module: function ($) {
vedere la struttura:
- jquery.min.js
- richiedono-jquery.js
- jquery .dataTables.js
E questo:
tickerdashboardtable = $('#tickerdashboardtable').dataTable({});
Non so come usare require-jquery.js. Come può risolvere questo problema.
http://requirejs.org/docs/errors.html#mismatch –
Potete mostrare un po 'di codice? Dove stai definendo 'require-jquery.js'? –
struttura è, 1.jquery.min.js 2.require-jquery.js 3.jquery.dataTables.js $ (document) .ready (function() { \t tickerdashboardtable = $ ('# tickerdashboardtable') .dataTable ({}) \t}); – Manivasagan