上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: Angular 双向绑定 利用一个例子来看看破坏双向绑定 // parent component html <child [val]='val'/> <button (onClick)="val=1">Reset</button> // child component html <span>{{va 阅读全文
posted @ 2021-06-16 22:24 kongshu 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 这篇文章记录一些 css 的基本概念 float 它脱离文档流,相对于它的包含块,放置自己的位置,包含块不是position!=static,这一点跟absolute fix的元素有点区别。包含块指的是它最近的块级祖先。 介绍一下几个属性 offsetTop, offsetLeft, offsetP 阅读全文
posted @ 2021-06-12 09:44 kongshu 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 简单介绍一下 AntD Select 的用法 mode: undefined, tag, multiple undefine: 默认值,就是dropdown, tag: 跟multple 唯一的区别就是,输入的值不在list 内,敲回车,自动插入. multiple, 就是多值选择。 一些约定 sh 阅读全文
posted @ 2021-06-10 10:42 kongshu 阅读(1989) 评论(0) 推荐(0) 编辑
摘要: 谈谈 route in AntD 路由分组与懒加载 路由分组,可以借助于前置匹配exact=,懒加载用于code split webpack 打包时减少初始包的体积,提供性能 路由分组 假设我们有一下路由 /parent/child1 /parent/child2 /parent/child3 那么 阅读全文
posted @ 2021-06-06 22:47 kongshu 阅读(55) 评论(0) 推荐(0) 编辑
摘要: This artical will display the concept of react ReactNode vs ReactElement let's see the code definition. ReactNode is a superset of ReactElement, React 阅读全文
posted @ 2021-06-02 15:52 kongshu 阅读(26) 评论(0) 推荐(0) 编辑
摘要: some little tech note about React and AntD Let's talk a little about ref basic usage example, we refer to the Dom. we prefer the sample1 // in ts cons 阅读全文
posted @ 2021-06-02 13:12 kongshu 阅读(62) 评论(0) 推荐(0) 编辑
摘要: Angular: ViewContainerRef, ElementRef, TemplateRef, ComponentRef Basic introduction to these four concepts ViewContainerRef definition from angular Do 阅读全文
posted @ 2021-05-30 15:42 kongshu 阅读(617) 评论(0) 推荐(0) 编辑
摘要: Simple Rules of Customized Hooks 首先,它是一个函数,跟普通的函数几乎没有区别 命名上面,以 usexxx 方式 内部用到的其他hooks, 必须至于最顶层, 不能加任何条件,unCondition 记住,它真的只是一个函数,别想太多。 Hook 函数的使用规则 Ho 阅读全文
posted @ 2021-05-27 15:10 kongshu 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 简介一下rc-select 首先 分析一下DOM 结构 注意以下的写法,这是过时的写法 <Select> <Option key='1' value='1'> </Select> 阅读全文
posted @ 2021-05-26 15:02 kongshu 阅读(658) 评论(0) 推荐(0) 编辑
摘要: React StrictMode 触发时机: 开发模式, 并且调用 StrictMode 执行时机 严格模式的运行是不会有 console.log 的输出的。输出的 view,都是第二次运行后的结果。据实验,方法组件是第二次是严格模式的运行(因为第二次的 console.log 没有输出),类组件则 阅读全文
posted @ 2021-05-23 22:52 kongshu 阅读(273) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页