ajax date是数组,DataTables

DataTables has the ability to read data from virtually any JSON data source that can be obtained by Ajax. This can be done, in its most simple form, by

setting the ajax option to the

address of the JSON data source.

The ajax option also allows for

more advanced configuration such as altering how the Ajax request is made. See the ajax documentation or the other Ajax examples for DataTables for further information.

By default DataTables will assume that an array data source is to be used and will read the information to be displayed in each column from the row's array

using the column index, making working with arrays very simple (note that this can be changed, or objects may use the columns.data option, shown in other

examples).

The example below shows DataTables loading data for a table from arrays as the data source, where the structure of the row's data source in this example

is:

[

"Tiger Nixon",

"System Architect",

"Edinburgh",

"5421",

"2011/04/25",

"$3,120"

]

For more details on loading a DataTable with Ajax data, please refer to the Ajax section of the manual.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值