摘要: 之前一直在搜怎么让提示框的文字换行,网上搜到的基本都是使用 ‘ /n ’,使用无效,也试了css换行,本来想用弹窗自己编辑html内容,还好回去官网看了一下; let arr = ['测试一', '测试二', '测试三']; let str = arr.join(' <br/> '); this.$ 阅读全文
posted @ 2021-07-20 14:17 假装空白 阅读(702) 评论(0) 推荐(0)
摘要: 代码 方式一: 根据stream内置方法去重 // 引入了两个静态方法,以及通过 TreeSet<> 来达到获取不同元素的效果 import static java.util.stream.Collectors.collectingAndThen; import static java.util.s 阅读全文
posted @ 2021-07-19 11:38 假装空白 阅读(5578) 评论(1) 推荐(1)
摘要: vue 当前端传回后端,后端使用实体类接收数据显示报错:nested exception is java.lang.NumberFormatException: For input string: "null" 可以将该不用或者为null或者为undefined的属性删除 使用语句 // 前端对象 阅读全文
posted @ 2021-07-14 15:55 假装空白 阅读(752) 评论(0) 推荐(0)
摘要: 原因: 在 js getMonth()获取月份时比现实少一个月是因为在计算时,是从0开始算起,一月份为0月 解决办法: 在获取到的月份再加1 const month = new Date().getMonth()+1 阅读全文
posted @ 2021-06-22 15:46 假装空白 阅读(1450) 评论(0) 推荐(0)
摘要: let Ids = this.houseList.map(item => item.houseId); let arr = new Array(); this.projectOptions.forEach((item, index) => { if (!Ids.includes(item.id)) 阅读全文
posted @ 2021-06-10 21:50 假装空白 阅读(324) 评论(0) 推荐(0)
摘要: 1、新建浏览器标签页打开链接 window.open("https://www.baidu.com/") 2、当前浏览器标签页打开链接,替换原来的页面 window.location.href="https://www.baidu.com/" 阅读全文
posted @ 2021-06-09 16:40 假装空白 阅读(486) 评论(0) 推荐(0)
摘要: 问题: toggleRowSelection(i,true)无法选中 解决方法 //使用 this.$nextTick() this.$nextTick(()=>{ this.$refs.multipleSelectionTable.toggleRowSelection(row,true); }) 阅读全文
posted @ 2021-05-18 16:38 假装空白 阅读(1181) 评论(0) 推荐(0)
摘要: Vue router如何传参 要点总结:在vue-router中,有两大对象被挂载到了实例this;$route(只读、具备信息的对象);$router(具备功能的函数) 查询字符串:去哪里 ?<router-link :to="{name:'detail',query:{id:1}}"> xxx 阅读全文
posted @ 2021-04-30 15:54 假装空白 阅读(154) 评论(0) 推荐(0)
摘要: 可用于查询以都好分隔开的数据 strlist 字段名 参数以”,”分隔 如 (1,2,6,8) select FIND_IN_SET('2', '1,2'); 返回2 SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId}, ance 阅读全文
posted @ 2021-04-29 17:43 假装空白 阅读(839) 评论(0) 推荐(0)
摘要: 方式一: 添加样式 overflow-y: auto 在使用 <el-row> <el-col class="test"></el-col> </el-row> //在使用该布局时有时候缩小窗口,或者内容过多时不显示滚动条,为了添加滚动条可设置其中的标签样式overflow-y: auto,其中 y 阅读全文
posted @ 2021-04-22 00:10 假装空白 阅读(3831) 评论(0) 推荐(0)