![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
社会你鬼哥
教育是技术之本
展开
-
导出前端的table为excel,兼容IE
//base64转码 var base64 = function (s) { return window.btoa(unescape(encodeURIComponent(s))); }; //替换table数据和worksheet名字 var format = function (s, c) { return s.replace(/{(\w+)}/g, function (m, p) { return c[p]; }); } fun.原创 2020-06-05 09:31:31 · 342 阅读 · 3 评论 -
合并table指定列的相同的数据
// 合并多行为一行 jQuery.fn.rowspan = function(colIdx) { //封装的一个JQuery小插件 return this.each(function(){ var that; $('tr', this).each(function(row) { $('td:eq('+colIdx+')', this).each(function(col) { if (that!=null &&am.原创 2020-06-05 09:28:54 · 543 阅读 · 0 评论