TS6385
I have met this TS6385 (JS)'(handler: (S:JQueryStatic) => void): JQuery<document>' is deprecated
I have try to update Ensure jQuery Types are Up to Date but it's not solves this problem. It have problem with "ready". How could I fix it? Thank you so much
$(document).ready(function () {
loadDataTable();
});
function loadDataTable() {
dataTable = $('#tblData').DataTable({
"ajax": { url: '/admin/product/getall' },
"columns": [
{ data: 'title', "width": "15%" },
{ data: 'isbn', "width": "15%" },
{ data: 'listPrice', "width": "15%" },
{ data: 'author', "width": "15%" },
{ data: 'category.name', "width": "15%" }
]
});
}
3 Replies

Documentation and Google are your friends