小编new*_*tar的帖子

jQuery Datatables Server side pagination with custom HTTP POST request and response

I have worked on one issue for last two days. I'm using jQuery and DataTables in a page, which fetches data from a server and populates tables quite happily. I need to make a change for requests from dataTables library to fetch data from the server happen.

Is it possible to make a jquery ajax post request without defined param list mention in link below?

https://datatables.net/usage/server-side

This is my json POST request:

{"page_number":1,"page_size":10}
Run Code Online (Sandbox Code Playgroud)

and this is my server response:

{ …
Run Code Online (Sandbox Code Playgroud)

javascript datatables

5
推荐指数
1
解决办法
6070
查看次数

标签 统计

datatables ×1

javascript ×1