给bootstrap-table 的对应Column加个一class,比如 class:add-at

{field: '**Code', title: '**编号',class:'add-at'},

导出之前筛选出对应td加

data-tableexport-msonumberformat=\@
然后再导出,就没问题


$("td.add-at").attr("data-tableexport-msonumberformat","\\@");
setTimeout(function(){
    $mainTable.tableExport({type:'excel',ignoreColumn:['state','operate'],fileName:'临时导出'});
},1000);

效果如下:

bootstrap-table+tableExport-jquery-plugin-master tableexport.js导出数字过长显示科学计数的问题

参考:https://github.com/hhurz/tableExport.jquery.plugin



相关文章:

  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2021-12-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-31
  • 2022-01-03
  • 2021-07-17
  • 2022-12-23
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
相关资源
相似解决方案