Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/435.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/75.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
Javascript 如何将“显示条目”列移动到datatables的下方_Javascript_Jquery_Datatable - Fatal编程技术网

Javascript 如何将“显示条目”列移动到datatables的下方

Javascript 如何将“显示条目”列移动到datatables的下方,javascript,jquery,datatable,Javascript,Jquery,Datatable,我正在尝试使用mvc页面上的datatables按需加载 如果您在图中看到,show条目位于数据表的顶部 我可以将show 10条目移动到show 1至10条目的下方吗 下面是我的html代码 <div class="dataTables_hideonload m-b-10"> <table class="table table-condensed table-vertical-middle table-layout-fixed tab

我正在尝试使用mvc页面上的datatables按需加载

如果您在图中看到,show条目位于数据表的顶部

我可以将show 10条目移动到show 1至10条目的下方吗

下面是我的html代码

        <div class="dataTables_hideonload m-b-10">
            <table class="table table-condensed table-vertical-middle table-layout-fixed table-noajax" id="tableCategoryList" width="100%">
                <thead>
                    <tr>
                        <th class="text-left">Category ID</th>
                        <th class="text-left">Category Name</th>
                        <th class="text-left">Sort order</th>
                    </tr>
                </thead>
                <tbody></tbody>
            </table>
        </div>

类别ID
类别名称
排序顺序

您可以使用以下方法重新定位它:

"dom": '<"top"i>rt<"bottom"flp><"clear">'
“dom”:“rt”

您可以尝试使用$('#example').DataTable({“dom”:“rt'});