How does DataTables get data from the background?

how does DataTables get data from the background?
how should his js file be written?

Apr.03,2021

$('-sharpdataTable').DataTable({
    columns: [
    ],
    ajax: {
      url: url,
      type: 'POST',
      dataType: 'json',
      contentType: 'application/json',
      data(d) {
        // 
      },
      dataFilter(result) {
        // 
      },
    },
  });
Menu