手风琴包含一个JQuery数据表,它有100多行 . 当用户扩展手风琴时,需要花费大量时间才能使数据表可见 .
这是详细信息:
// dataTable属性的声明
var dataTableProperties = {“bPaginate”:true};
//初始化dataTable对象
var $ table = $('#table') . DataTable(dataTableProperties);
//点击按钮, toggles 到"view All pages" / "add pagination",代码如下:
if(dataTableProperties .bPaginate)dataTableProperties.bPaginate =!dataTableProperties .bPaginate;
现在,在手风琴上点击我只是显示/隐藏手风琴内容 . But it takes huge time, if the rowCount of the table is more than 100 and "bPaginate" property is false.
请帮帮我..提前谢谢..