bootstrap-table+tableExport-jquery-plugin-master tableexport.js导出数字过长显示科学计数的问题
给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);
效果如下:
参考:https://github.com/hhurz/tableExport.jquery.plugin