在下面找到我的代码以加载数据表
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数据表