会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
全玉金生
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
16
17
18
19
20
21
22
23
24
···
87
下一页
2022年4月22日
react实现computed和watch
摘要: 类组件 1. componentDidUpdate可以实现两者 2. getter方法可以实现computed get address() { const { province, city } = this.state; return `${province} ${city}`; } getter没
阅读全文
posted @ 2022-04-22 14:06 全玉
阅读(1346)
评论(0)
推荐(0)
2022年4月20日
判断两个IP是否在一个子网(网段)
摘要: IP = 网络标识 + 主机标识 1. 两个IP在同一网段相当于 IP1 网络标识 = IP2 网络标识 2. 计算网络标识 网络标识 = IP的二进制 AND 子网掩码的二进制 3. 计算主机标识 主机标识 = IP的二进制 AND 子网掩码的二进制取反 4. 子网掩码速查
阅读全文
posted @ 2022-04-20 09:47 全玉
阅读(376)
评论(0)
推荐(0)
2022年3月1日
Rxjs的常用概念
摘要: 1. Rxjs的基本概念 Observable Observer Subscription 作用是供调用者来终止执行,ConnectableObservable的connect()方法会返回该类型 Subject Operators Observer 就是实现该接口的一种对象 interface O
阅读全文
posted @ 2022-03-01 19:49 全玉
阅读(302)
评论(0)
推荐(0)
2022年1月18日
js的Proxy和Reflect的应用场景
摘要: proxy基本使用方式 /** * target: 表示要代理的目标,可以是object, array, function类型 * handler: 是一个对象,可以编写各种代理的方法 */ const proxy = new Proxy(target, handler); 1. 跟踪属性访问 co
阅读全文
posted @ 2022-01-18 13:52 全玉
阅读(623)
评论(0)
推荐(0)
2021年12月26日
Console工具API
摘要: $_ 上个表达式的值 $0 - $4 最近选择的5个element $ doucment.querySelector $$ document.querySelectorAll $x 匹配xpath的element clear 清空 copy 复制对象到剪贴板 debug 调试函数 inspect 定
阅读全文
posted @ 2021-12-26 15:07 全玉
阅读(49)
评论(0)
推荐(0)
2021年12月18日
sticky 布局
摘要: sticky 布局 (已经成熟) .content{ min-height: 100vh; padding-bottom: 100px; } .footer{ height: 100px; position: sticky; bottom: 0; } 1.父元素及祖先元素不能overflow:hid
阅读全文
posted @ 2021-12-18 15:36 全玉
阅读(209)
评论(0)
推荐(0)
vuex跨模块的mapGetter和mapMutation
摘要: 映射 ...mapGetters("模块名",['字段名']) ...mapState("模块名",['字段名']) 直接操作 this.$store.getters["模块名/字段名"] this.$store.commit["模块名/方法名"] 映射别名 ...mapState('some/xx
阅读全文
posted @ 2021-12-18 11:08 全玉
阅读(310)
评论(0)
推荐(0)
2021年12月17日
grid布局速记
摘要: grid布局效果总览 容器属性 grid-template-rows gird-template-columns grid-template-areas grid-auto-rows: 对未设置行高的网格设置默认高度,grid-template-rows可覆盖 grid-auto-columns:
阅读全文
posted @ 2021-12-17 13:24 全玉
阅读(97)
评论(0)
推荐(0)
粘性(sticky)底部的几种实现方式
摘要: html结构 <body> <div class="content"> </div> <div class="footer"> </div> </body> 1. 负margin拉动 .content{ min-height: 100%; margin-bottom: -50px; } .foote
阅读全文
posted @ 2021-12-17 11:07 全玉
阅读(313)
评论(0)
推荐(0)
2021年12月11日
根据日志文件查找进程
摘要: 使用场景:工作中经常遇到某个日志文件报错,但不知道是谁写的这个文件;不局限此场景;使用步骤:1.根据文件逆向查找使用该文件的进程;比如: lsof /var/log/messages 找到PID 2.查找PID的进程; ps -ef|grep -v grep |grep $PID 3.看到这个进程就
阅读全文
posted @ 2021-12-11 09:59 全玉
阅读(228)
评论(0)
推荐(0)
上一页
1
···
16
17
18
19
20
21
22
23
24
···
87
下一页
公告