滚动条没有滚动

时间:2015-11-08 17:01:21

标签: jquery ajax datatables

是否可以使用不指定scrollY的scroller datatables插件?

$('#table').DataTable({
    serverSide: true,
    ajax: '/besom/entity/websearch/list/ajax',
    columns: [
        { data: 'id' },
        { data: 'query' },
        { data: 'resultLimit' },
        { data: 'created' },
        { data: 'success' },
        { data: 'performed' } ],
//      language: { "loadingRecords": "loading data..." },
    scrollY: 400,
    lengthChange: false,
    deferRender: true,
    scroller: {
//  loadingIndicator: true,
//  displayBuffer: 20
    },
//  scrollCollapse: true
})

如果我注释掉滚动" this.dom.scroller未定义"发生错误。这是数据表的正确行为吗?我的示例数据是:

{"draw":0,"recordsTotal":184227,"recordsFiltered":184227,"data": [
{"id":4,"resultLimit":100,"query":" ","site":"facebook.com","startIndex":91,"success":true,"created":1428769822000,"performed":1433538000000},
{"id":5,"resultLimit":100,"query":"product","site":"facebook.com","startIndex":91,"success":true,"created":1428769822000,"performed":1433538000000}],
"error":null}

通过主浏览器滚动条允许无限滚动是另一种方法还是解决方法?

0 个答案:

没有答案