为了账号安全,请及时绑定邮箱和手机立即绑定

dataTables添加扩展excel后无法显示按钮啊,有大神们知道吗

dataTables添加扩展excel后无法显示按钮啊,有大神们知道吗

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><link href="../../../css/css.css" rel="stylesheet" type="text/css" /><link href="../../../css/demo_table.css" rel="stylesheet" type="text/css"/><link href="../../../css/jquery.dataTables.min.css" rel="stylesheet" type="text/css" /><link href="../../../css/buttons.dataTables.min.css" rel="stylesheet" type="text/css"/><script language="JavaScript" src="../../../js/jquery-1.8.3.js"></script><script language="JavaScript" src="../../../js/parameter.js"></script><script language="JavaScript" src="../../../js/jquery.json-2.4.js"></script><!-- <script language="JavaScript" src="../../../js/jquery.dataTables.js"></script> --><script language="JavaScript" src="../../../js/datatables.js"></script><script language="JavaScript" src="../../../js/jquery-init.js"></script> <script language="JavaScript" src="../../../js/dataTables.buttons.js"></script> <script language="JavaScript" src="../../../js/buttons.html5.min.js"></script> <script language="JavaScript" src="../../../js/jquery.dataTables.min.js"></script><!-- <script language="JavaScript" src="../../../js/dataTables.bootstrap.min.js"></script> --><script language="JavaScript" src="../../../js/jszip.min.js"></script><script language="JavaScript" src="../../../js/dataTables.buttons.min.js"></script> <!-- <script language="JavaScript" src="../../../js/dataTables.buttons.js"></script> --><!-- <script language="JavaScript" src="../../../js/jquery-3.2.1.js"></script><script language="JavaScript" src="../../../js/jquery-3.2.1.min.js"></script> --><script language="JavaScript" src="../../../js/jquery.table2excel.js"></script><script language="JavaScript" src="../../../js/fnPagingInfo.js"></script><script type="text/javascript">
查看完整描述

1 回答

?
慕斯卡7585644

TA贡献1条经验 获得超0个赞

"oLanguage" : {//汉化

"sLengthMenu" : "每页显示 _MENU_ 条记录",

"sZeroRecords" : "  ",

"sInfo" : "当前记录为从第 _START_ 到第 _END_ 条;总共有 _TOTAL_ 条记录",

"sInfoEmtpy" : "没有数据",

"sProcessing" : "正在加载数据...",

"oPaginate" : {

"sFirst" : "首页",

"sPrevious" : "上一页",

"sNext" : "下一页",

"sLast" : "尾页"

}

},

     "dom": 'Bfrtip',

     /* "buttons": [

'excel','csv'

  ], */

        

       "buttons": [

{

'extend': 'excel',

'text': '导出',//定义导出excel按钮的文字

'className': 'btn btn-primary', //按钮的class样式

}

], 

}


查看完整回答
反对 回复 2018-07-28
  • 1 回答
  • 0 关注
  • 2143 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信