Datatabales requests two interfaces, and the latter interface takes the previous interface id as a parameter.

how to write it in a table

$("-sharpexample").DataTable( {
    "processing": true,
    "ajax": "/files",
    // "ajax":"/files/{id}",
     "columns": [
          { "data": "name"},
          { "data": "id" },
          { "data": "size" },
          { "data": "updateTime" },
     ]
} );
Apr.03,2021
Menu