Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jquery 无法获取属性';aDataSort';指未定义的或空的引用_Jquery_Twitter Bootstrap_Bootstrap Table - Fatal编程技术网

Jquery 无法获取属性';aDataSort';指未定义的或空的引用

Jquery 无法获取属性';aDataSort';指未定义的或空的引用,jquery,twitter-bootstrap,bootstrap-table,Jquery,Twitter Bootstrap,Bootstrap Table,我正在尝试将搜索选项设置为表。。这是密码 $('#dtreport').dataTable({ "oLanguage": { "sLengthMenu": 'Display <select name="dtAgents_length" aria-controls="dtAgents" class="form-control input-sm">' +

我正在尝试将搜索选项设置为表。。这是密码

$('#dtreport').dataTable({
                    "oLanguage": {
                        "sLengthMenu": 'Display <select name="dtAgents_length" aria-controls="dtAgents" class="form-control input-sm">' +
                                                    '<option value="5">5</option>' +
                                                    '<option value="10">10</option>' +
                                                    '<option value="25">25</option>' +
                                                    '<option value="50">50</option>' +
                                                    '<option value="75">75</option>' +
                                                    '<option value="100">100</option>' +
                                                    '<option value="-1">All</option>' +
                                                '</select> records',
                        "sInfo": '<label>Displaying _START_ to _END_ of _TOTAL_ records.</label>',
                        "sZeroRecords": '<center><span style="color: red;"><i class="fa fa-users fa-2x"></i>  No report found.</span></center>',
                        "sInfoEmpty": '<label>Displaying 0 to 0 of 0 records.</label>',
                        "sInfoFiltered": '<label>(filtered from _MAX_ total entries)</label>'
                    },
                    "aLengthMenu": [[5, 10, 25, 50, 75, 100, -1], [5, 10, 25, 50, 75, 100, 'All']],
                    "iDisplayLength": 5
                });
$('#dtreport')。数据表({
“语言”:{
“显示菜单”:“显示”+
'5' +
'10' +
'25' +
'50' +
'75' +
'100' +
“全部”+
"纪录",,
“sInfo”:“显示总计记录的开始到结束”,
“sZeroRecords:'未找到报告',
“sInfoEmpty”:“显示0条记录中的0到0条记录。”,
“sInfoFiltered”:(从“最大”总条目中筛选)
},
“阿伦提努”:[[5,10,25,50,75,100,-1],[5,10,25,50,75,100,‘全部’],
“iDisplayLength”:5
});
我得到了不同的运行时错误,如

如果表是空的

jquery.dataTables.min.js中第65行第340列的未处理异常

0x800a138f-JavaScript运行时错误:无法获取未定义或空引用的属性“aDataSort”

如果表中有数据

jquery.dataTables.min.js中第85行第496列的未处理异常

0x800a138f-JavaScript运行时错误:无法获取未定义或空引用的属性“parentNode”

请帮助解决这个问题。。。 谢谢你