会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Deer_Lin
林深时见鹿,梦醒时见你
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
下一页
2021年8月21日
vue 销毁组件、重置组件方式
摘要: 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)
2021年8月17日
js模拟dom失去焦点,阻止事件冒泡
摘要: 需求: 点击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)
2021年7月29日
css设置鼠标hover效果
摘要: cursor: pointer; 预览:hover蓝色文字即可看到效果 hover文字区域,hover查看小效果
阅读全文
posted @ 2021-07-29 17:36 Deer_Lin
阅读(374)
评论(0)
推荐(0)
2021年7月16日
删除远程仓库连接
摘要: git remote rm origin
阅读全文
posted @ 2021-07-16 18:23 Deer_Lin
阅读(47)
评论(0)
推荐(0)
2021年6月26日
svg-icon修改颜色
摘要: 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)
2021年5月11日
过滤器合集
摘要: 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)
2021年5月10日
根据身份证获取年龄和出生日期
摘要: 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)
2021年5月3日
本地微信编译器运行小程序调用接口没问题,手机开发版本打开debug
摘要: 原因:请求接口域名未在小程序安全域名中配置。 提示: 1.域名需是https协议域名 2.如果暂时没有https请求协议域名,可打开编译工具本地设置 3.手机开发版,开启
阅读全文
posted @ 2021-05-03 16:07 Deer_Lin
阅读(245)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
下一页
公告