摘要: 完整帮助代码:JAVA poi 帮助类 阅读全文
posted @ 2018-11-27 10:26 Robot-Blog 阅读(2669) 评论(0) 推荐(0)
摘要: pom.xml 添加引用: Java没有datatable,创建一个数据保存帮助类 import java.util.ArrayList; public class ExcelDO { public ExcelDO() { } public ExcelDO(String name) { this.n 阅读全文
posted @ 2018-11-26 21:00 Robot-Blog 阅读(1052) 评论(0) 推荐(0)
摘要: /** * 字符串编码转换的实现方法 * @param str 待转换编码的字符串 * @param newCharset 目标编码 * @return * @throws UnsupportedEncodingException */ public String changeCharset(String str, String newChars... 阅读全文
posted @ 2018-11-21 15:26 Robot-Blog 阅读(13590) 评论(0) 推荐(0)
摘要: 获取sheet中存在合并单元格总数,循环绑定值 // 得到一个sheet中有多少个合并单元格 int sheetMergeCount = sheet.NumMergedRegions; for (var i = 0; i < sheetMergeCount; i++) { // 获取合并后的单元格 阅读全文
posted @ 2018-11-20 13:45 Robot-Blog 阅读(1150) 评论(0) 推荐(0)
摘要: nuget添加npoi 阅读全文
posted @ 2018-11-20 13:35 Robot-Blog 阅读(1153) 评论(0) 推荐(2)
摘要: // 把指定格式的日期字符串转换为时间:2018/11/1 0:00:00 DateTime.ParseExact("2018a11","yyyyaMM",System.Globalization.CultureInfo.CurrentCulture) // 当前时间年月日:2018/11/13 0:00:00 DateTime.Now.Date 阅读全文
posted @ 2018-11-13 15:11 Robot-Blog 阅读(1142) 评论(0) 推荐(0)
摘要: 执行 链接 下载 阅读全文
posted @ 2018-11-12 17:36 Robot-Blog 阅读(586) 评论(2) 推荐(0)
摘要: HTML <a class="btn btn-warning" id="btnDownload">选中下载</a> JS /* 批量下载 */ // li 列表的文件下载 $("#btnDownload").on('click', function() { var arr = []; var url 阅读全文
posted @ 2018-11-12 15:38 Robot-Blog 阅读(727) 评论(1) 推荐(0)
摘要: 代码 分支 阅读全文
posted @ 2018-11-02 11:25 Robot-Blog 阅读(236) 评论(0) 推荐(0)
摘要: var list1 = new List { 1, 3, 5, 7, 9, 11, 13, 15 }; var list2 = new List { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; // List1:1 3 5 7 9 11 13 15 Console.WriteLine("List1:" + string.Join("\t", list1)); // List2:1... 阅读全文
posted @ 2018-09-18 20:23 Robot-Blog 阅读(1725) 评论(7) 推荐(0)