DataTables: Uncaught TypeError: Cannot read property 'defaults' of undefined

前端 未结 4 1541
逝去的感伤
逝去的感伤 2020-12-08 03:54

When using the Bootstrap integration for DataTables, I see the following error in the console:

Uncaught TypeError: Cannot read property \'defaults\' of undefined (         


        
4条回答
  •  旧巷少年郎
    2020-12-08 04:17

    The problem is that dataTable is not defined at the point you are calling this method.

    Ensure that you are loading the .js files in the correct order:

    
    
    

提交回复
热议问题