您好,登录后才能下订单哦!
密码登录
登录注册
点击 登录注册 即表示同意《亿速云用户服务条款》
function analysis_table1() { var dataSet=[ ['1','大气所','PM2.5','区域监点'], ['1','大气所','PM2.5','区域监点'], ['1','大气所','PM2.5','区域监点'], ['1','大气所','PM2.5','区域监点'], ['1','大气所','PM2.5','区域监点'], ['1','大气所','PM2.5','区域监点'], ['1','大气所','PM2.5','区域监点'] ] var t = $('#Deployment_point_datatables1bottom').DataTable( { "bAutoWidth":false, "processing": true, "bProcessing": true, "searching":false, "oLanguage" :{ "sLengthMenu": "每页显示 _MENU_ 条", "sZeroRecords": "抱歉, 没有找到", "sInfo": "从 _START_ 到 _END_ /共 _TOTAL_ 条数据", "sInfoEmpty": "没有数据", "sInfoFiltered": "(从 _MAX_ 条数据中检索)", "sZeroRecords": "没有检索到数据", "sSearch": "搜索", "oPaginate": { "sFirst": "首页", "sPrevious": "前一页", "sNext": "后一页", "sLast": "尾页" } }, "scrollY": "300px", "scrollCollapse": "true", "paging": "false", "lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]], "data": dataSet, "columns": [ { "title": "排名" }, { "title": "名称" }, { "title": "PM2.5" }, { "title": "POI" } ] } ); }
通过数组的push,这样就可以自定义后台传来的值了,是不是很棒?
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。