获取未捕获的TypeError:无法读取属性' ext'添加html5按钮时未定义的jquery数据表

时间:2017-06-22 07:33:07

标签: jquery datatables

在下面找到我的代码以加载数据表

var url = './findAllStoppageReport';

         $('#table').DataTable( {
             dom: 'Bfrtip',
             buttons: [
                 'excelHtml5',
                 'csvHtml5',
                 'pdfHtml5'
             ],
            "ajax": {
                "url" : url,
                "data" : {
                    "frmDate" : startDate,
                    "toDate" :endDate,
                    "vehicleId" :selectedVehicle,
                    "crewId" :selectedDriver,
                    "headName" :headName,
                    "driverName" :driverName,
                    "stoppageTime" :stoppageTime
                }
            },
            "columns": [
                { "data": "tripDate" },
                { "data": "tripId" },
                { "data": "location"},
                { "data": "stopStartTime"},
                { "data": "stopEndTime"},
                { "data": "totalStopTime"}
              ]
        } );

我添加了所有必需的数据表插件

  

输出:未捕获的TypeError:无法读取属性' ext'未定义的   jquery数据表

0 个答案:

没有答案