上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 87 下一页
摘要: 类组件 1. componentDidUpdate可以实现两者 2. getter方法可以实现computed get address() { const { province, city } = this.state; return `${province} ${city}`; } getter没 阅读全文
posted @ 2022-04-22 14:06 全玉 阅读(1202) 评论(0) 推荐(0) 编辑
摘要: IP = 网络标识 + 主机标识 1. 两个IP在同一网段相当于 IP1 网络标识 = IP2 网络标识 2. 计算网络标识 网络标识 = IP的二进制 AND 子网掩码的二进制 3. 计算主机标识 主机标识 = IP的二进制 AND 子网掩码的二进制取反 4. 子网掩码速查 阅读全文
posted @ 2022-04-20 09:47 全玉 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1. Rxjs的基本概念 Observable Observer Subscription 作用是供调用者来终止执行,ConnectableObservable的connect()方法会返回该类型 Subject Operators Observer 就是实现该接口的一种对象 interface O 阅读全文
posted @ 2022-03-01 19:49 全玉 阅读(245) 评论(0) 推荐(0) 编辑
摘要: proxy基本使用方式 /** * target: 表示要代理的目标,可以是object, array, function类型 * handler: 是一个对象,可以编写各种代理的方法 */ const proxy = new Proxy(target, handler); 1. 跟踪属性访问 co 阅读全文
posted @ 2022-01-18 13:52 全玉 阅读(550) 评论(0) 推荐(0) 编辑
摘要: $_ 上个表达式的值 $0 - $4 最近选择的5个element $ doucment.querySelector $$ document.querySelectorAll $x 匹配xpath的element clear 清空 copy 复制对象到剪贴板 debug 调试函数 inspect 定 阅读全文
posted @ 2021-12-26 15:07 全玉 阅读(40) 评论(0) 推荐(0) 编辑
摘要: sticky 布局 (已经成熟) .content{ min-height: 100vh; padding-bottom: 100px; } .footer{ height: 100px; position: sticky; bottom: 0; } 1.父元素及祖先元素不能overflow:hid 阅读全文
posted @ 2021-12-18 15:36 全玉 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 映射 ...mapGetters("模块名",['字段名']) ...mapState("模块名",['字段名']) 直接操作 this.$store.getters["模块名/字段名"] this.$store.commit["模块名/方法名"] 映射别名 ...mapState('some/xx 阅读全文
posted @ 2021-12-18 11:08 全玉 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 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 全玉 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 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 全玉 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 使用场景:工作中经常遇到某个日志文件报错,但不知道是谁写的这个文件;不局限此场景;使用步骤:1.根据文件逆向查找使用该文件的进程;比如: lsof /var/log/messages 找到PID 2.查找PID的进程; ps -ef|grep -v grep |grep $PID 3.看到这个进程就 阅读全文
posted @ 2021-12-11 09:59 全玉 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 87 下一页