07 2024 档案
摘要:判断一个时间加30天是否比当前时间大,代码如下: //repTaskResult.getStartDate() 2024-6-1 //new Date() 2024-6-5 Calendar calendar=Calendar.getInstance(); calendar.setTime(repT
阅读全文
摘要:由于业务需求,需要把身份证一部分隐藏掉,首先判断是不是身份证号,正则如下: String regex = "^(\\d{15}$|^\\d{18}$|^\\d{17}(\\d|X|x)$)"; 替换中间需要隐藏问题 String regex = "^(\\d{15}$|^\\d{18}$|^\\d{
阅读全文
摘要:<span @click="showModal(item)" :title="item.title" style="color:#4040f3;"> <span v-if="item.isTop!=null&&item.isTop==1" style="color:red;"> <b>[顶]</b>
阅读全文
摘要:Vue项目中遇到如下报错 Duplicate keys detected: ''. This may cause an update error. Vue官网: v-for的默认行为会尝试原地修改元素而不是移动它们。要强制其重新排序元素,你需要用特殊attribute key 来提供一个排序提示 也
阅读全文