摘要: 1.使用v-if 在组件上定义v-if一个布尔变量 1.变量改为false 2.变量改为true 2. import dialog from '@compintent/dialog' components: {dialog} this.$destroy('dialog'); 3. // get~ 销 阅读全文
posted @ 2021-08-21 17:40 Deer_Lin 阅读(4837) 评论(0) 推荐(0)
摘要: 需求: 点击div,将mouseListening改变为:true 点击除div外其他区域,将mouseListening改变为:false dom <div class="select-popup_panel" ></div> js export default { data() { return 阅读全文
posted @ 2021-08-17 15:44 Deer_Lin 阅读(579) 评论(0) 推荐(0)
摘要: cursor: pointer; 预览:hover蓝色文字即可看到效果 hover文字区域,hover查看小效果 阅读全文
posted @ 2021-07-29 17:36 Deer_Lin 阅读(374) 评论(0) 推荐(0)
摘要: git remote rm origin 阅读全文
posted @ 2021-07-16 18:23 Deer_Lin 阅读(47) 评论(0) 推荐(0)
摘要: 1.找到相对应的svg文件 比如我使用的图标名:lights vue: <svg-icon icon-class="lights" class="set-svg-color" :style="{color:'#c3f432'}" /> 文件: 2.修改,将固定颜色改为自定义名称 3.增加样式 (1) 阅读全文
posted @ 2021-06-26 18:11 Deer_Lin 阅读(4550) 评论(0) 推荐(0)
摘要: 1.通过值查找属性名 const findKey = (value, obj, compare = (a, b) => a b) => { return Object.keys(obj).find(k => compare(obj[k], value)); }; 2.数字保留小数 const toF 阅读全文
posted @ 2021-05-11 11:09 Deer_Lin 阅读(52) 评论(0) 推荐(0)
摘要: https://c.runoob.com/front-end/854 //正则表达式在线测试 | 菜鸟工具 //版本号验证 V**.**.** 1.^([V]+[1-9]{1}[0-9]{0,2})+(\.[0-9]{2})+(\.[0-9]{2})$ 2. version: { pattern: 阅读全文
posted @ 2021-05-11 10:40 Deer_Lin 阅读(63) 评论(0) 推荐(0)
摘要: let spaceReplace = (str) => { //将字符串中的换行符/回车符替换为<br/>标签 // \n 匹配一个换行符, \r 匹配一个回车符 return str.replace(/\n|\r/g, '<br/>') } 2. 字符串清除dom const clearDom = 阅读全文
posted @ 2021-05-11 10:33 Deer_Lin 阅读(159) 评论(0) 推荐(0)
摘要: queryage() { //得到年龄 if (this.model.idCard && this.model.idCard.length == 18) { this.model.brthday = this.model.idCard.substring(6, 10) + '-' + this.mo 阅读全文
posted @ 2021-05-10 15:10 Deer_Lin 阅读(252) 评论(0) 推荐(0)
摘要: 原因:请求接口域名未在小程序安全域名中配置。 提示: 1.域名需是https协议域名 2.如果暂时没有https请求协议域名,可打开编译工具本地设置 3.手机开发版,开启 阅读全文
posted @ 2021-05-03 16:07 Deer_Lin 阅读(245) 评论(0) 推荐(0)