table.columns is not a function in datatable.js

前端 未结 8 1630
鱼传尺愫
鱼传尺愫 2021-02-01 13:12



        
8条回答
  •  野的像风
    2021-02-01 13:30

    Try changing

    var table = $('#sample_3').dataTable();
    

    to

    var table = $('#sample_3').DataTable();
    

    ... that is, capitalize the DataTable(). Source: https://datatables.net/manual/api#Accessing-the-API

提交回复
热议问题