how to put multiple jquery dataTables in one page?

前端 未结 9 1412
迷失自我
迷失自我 2020-12-09 03:22

I want to use jquery dataTables to show something.

It works well when i just put one dataTable in one page, then i add one more, but they occupied almost the same p

9条回答
  •  萌比男神i
    2020-12-09 04:15

    If you have multiple datatables on the single page - check if you are using the following from the examples

    "fnServerData": fnDataTablesPipeline
    

    this caches the data from the first call; if the second datatable uses the same function it will see that data has already been fetched and not make the ajax call to retrieve its data. and so you will not receive data to your second(nth) datatable.

提交回复
热议问题