摘要: 1、返回的对象接口 const mapObj = { “apple": ‘苹果’, ”banana“: ‘香蕉’ }; 2、转换为ES6 map对象 const map = new Map(Object.entries(mapObj)); 3、访问 map.get('apple'); 阅读全文
posted @ 2024-07-01 13:32 唏嘘- 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1、table上增加 @row-click="handleClickTableRow" 2、单选框的checkbox那列加上 @selection-change="handleSelectionChange" 3、table加上ref 代码实现: methods: { handleClickTabl 阅读全文
posted @ 2024-07-01 13:16 唏嘘- 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 在 MyBatis-Plus 中,使用updateById,null字段并不会更新,其实是和更新的策略有关,当然,也有插入策略。 1、调整全局策略(会对所有的字段都忽略判断,如果一些字段不想要修改,但是传值的时候没有传递过来,就会被更新为null) mybatis-plus: global-conf 阅读全文
posted @ 2024-05-15 14:42 唏嘘- 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 报错: Uncaught URIError: URI malformed 原因: decodeURI转码时,通过%进行解析,如果字符串中存在%(如: ‘100%’),则会出现URI malformed 解决方案:将 % 替换成 %25 const percent2percent25 = (URI) 阅读全文
posted @ 2024-05-15 14:19 唏嘘- 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1、idea 有时候出现崩溃退出,但是java项目还在运行,重启idea 启动项目会出现端口号占用启动失败的问题 解决: 查找端口号为1100的进程: netstat -aon|findstr "1100" 杀死进程: taskkill /pid 30304 -f 阅读全文
posted @ 2024-02-21 14:10 唏嘘- 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 1、点击取消按钮,不触发表单校验 <form @submit="onSubmit"> <van-button type="info" native-type="button" :disabled="disabled" @click="handleBack" >取消</van-button> <van 阅读全文
posted @ 2024-01-26 15:08 唏嘘- 阅读(152) 评论(0) 推荐(0) 编辑
摘要: css中包含3中元素:块状元素、内联元素(又叫行内元素)和内联块状元素。 一、常用的块级元素(block): <div>、<p>、<h1>...<h6>、<ol>、<ul>、<dl>、<table>、<address>、<blockquote> 、<form> 主要特点:display:block 阅读全文
posted @ 2024-01-26 14:49 唏嘘- 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1、使用 beforeRouteLeave 来记录路由跳转之前滚动条的位置 beforeRouteLeave(to, from, next): 离开路由之前执行的函数,可用于页面的反向传值,页面跳转; beforeRouteLeave(to, from, next) { console.log('b 阅读全文
posted @ 2024-01-26 14:12 唏嘘- 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1、在form表单上 加上 :key=“formKey” <van-form colon ref="form" :key="formKey"> </van-form> 2、在data定义 formKey:0 data() { return { formKey: 0, } }, 3、在 activat 阅读全文
posted @ 2024-01-26 13:33 唏嘘- 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 1、依赖冲突: 当服务启动或者调用发生如下异常时,NoSuchMethodError,ClassNotFoundException 等。则一般是因为jar包冲突引起的。 大多数依赖冲突,maven的传递依赖会引入很多隐式的依赖,依赖的版本和实际使用的版本不一致导致的。 2、依赖的原则: 原则一:最短 阅读全文
posted @ 2023-12-29 15:00 唏嘘- 阅读(30) 评论(0) 推荐(0) 编辑