Using jQuery DataTables plugin, does fnAddData() add rows to the top or bottom of an html table?

前端 未结 3 2007
梦如初夏
梦如初夏 2021-01-05 11:50

I have tested this and the reason I asked the question is that it seems to be doing different things for different tables.

I couldn\'t find any documentation on if t

3条回答
  •  清酒与你
    2021-01-05 12:11

    To disable sorting, so that a new row will be appended to the bottom of a table, add

    "bSort": false
    

    to (the top of) your DataTable initialization.

提交回复
热议问题