When using the Bootstrap integration for DataTables, I see the following error in the console:
Uncaught TypeError: Cannot read property 'defaults' of undefined (dataTables.bootstrap.js:20)
This causes the pagination controls to not have styles on them.
I can see that in the factory initialization, the following code needs to run:
factory( jQuery, jQuery.fn.dataTable );
However, jQuery.fn.dataTable
is returning undefined
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…