读书人

datatables 应用

发布时间: 2012-11-22 00:16:41 作者: rapoo

datatables 使用
Note that the prefix for this variable is wrong in 1.5.x where iSortDir_(int) was used)stringsEcho

Information for DataTables to use for rendering

?

发送到server中的data字段

In reply to each request for information that DataTables makes to the server, it expects to get a well formed JSON object with the following parameters.

TypeNameInfointiTotalRecordsTotal records, before filtering (i.e. the total number of records in the database)intiTotalDisplayRecordsTotal records, after filtering (i.e. the total number of records after filtering has been applied - not just the number of records being returned in this result set)stringsEchoAn unaltered copy of sEcho sent from the client side. This parameter will change with each draw (it is basically a draw count) - so it is important that this is implemented. Note that it strongly recommended for security reasons that you 'cast' this parameter to an integer in order to prevent Cross Site Scripting (XSS) attacks.stringsColumnsOptional - this is a string of column names, comma separated (used in combination with sName) which will allow DataTables to reorder data on the client-side if required for displayarray array mixedaaDataThe data in a 2D array

返回页面的数据(.JSON)

1 楼 ssy341 2012-09-20 Datatables交流群
http://bbs.sailit.cn/forum.php?mod=viewthread&tid=70&fromuid=4
欢迎博主 一起交流交流

读书人网 >Web前端

热点推荐