随笔分类 -  笔记

BigDecimal笔记
摘要:创建: BigDecimal a = new BigDecimal(0.1); System.out.println(a);//0.1000000000000000055511151231257827021181583404541015625 System.out.println(a.doubleV 阅读全文

posted @ 2022-07-19 16:26 胜者为王东恺 阅读(217) 评论(0) 推荐(0) 编辑

EasyExcel导入简单使用
摘要:实体类 import com.alibaba.excel.annotation.ExcelIgnore; import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; import com.alibaba.excel.annotation.E 阅读全文

posted @ 2022-05-16 16:49 胜者为王东恺 阅读(621) 评论(0) 推荐(0) 编辑

EasyExcel导出简单使用
摘要:工具类封装 import com.alibaba.excel.EasyExcel; import com.alibaba.excel.support.ExcelTypeEnum; import com.alibaba.excel.write.metadata.style.WriteCellStyle 阅读全文

posted @ 2022-05-16 15:06 胜者为王东恺 阅读(650) 评论(0) 推荐(0) 编辑

getCellTypeEnum
摘要:switch (cell.getCellTypeEnum()) {case NUMERIC:break;case STRING:break;case FORMULA:break;case BLANK:break;case BOOLEAN:break;case ERROR:break;default: 阅读全文

posted @ 2022-05-10 16:39 胜者为王东恺 阅读(393) 评论(0) 推荐(0) 编辑

正则表达式笔记
摘要:一些基本的符号: ^ 匹配输入字行首 $ 匹配输入行尾 [abc] 匹配集合,匹配所包含的任意一个字符。 [^abc] 反向匹配集合,匹配未包含的任意一个字符。 [a-z] 字符范围。匹配指定范围内的任意字符。 {n} n是一个非负整数。匹配确定的n次。 {n,} n是一个非负整数。至少匹配n次。 阅读全文

posted @ 2022-05-10 15:11 胜者为王东恺 阅读(17) 评论(0) 推荐(0) 编辑

js保留几位为小数并去掉小数末尾的0
摘要:var a = 3.1415926;a.toFixed(2); //3.14var b = 3.0001;b.toFixed(2); //3.00如果想去掉0可以用parseFloat方法:parseFloat(b.toFixed(2)); //3 阅读全文

posted @ 2022-03-22 11:04 胜者为王东恺 阅读(1371) 评论(0) 推荐(0) 编辑

Ztree中去掉节点前面的+-图标
摘要:在css中添加:.ztree li span.button.switch.level0 {display:none;} 官方文档:http://www.treejs.cn/v3/api.php 阅读全文

posted @ 2020-06-19 15:14 胜者为王东恺 编辑

判断字符串是不是以某个字符串开头
摘要:String.startsWith(String prefix) 例: String str1 = "abcdefg"; str1.startsWith("a");//true 阅读全文

posted @ 2020-06-19 15:09 胜者为王东恺 编辑

jQuery 页面加载完成时执行
摘要:1. $(document).ready(function (){ });2. $(function(){ });3. window.onload = function(){ }; 阅读全文

posted @ 2020-06-19 14:58 胜者为王东恺 阅读(161) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示