摘要: 众所周知, redux的三项原则之一有 state is read-only, 即immutable. 为了保证immutable, 所以每次reducer都要return一个new object, 作为新的state. 但为什么state一定要是immutable呢? 换言之, 为什么不能直接修改 阅读全文
posted @ 2023-03-25 12:49 mayingdts 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 原文链接 : https://www.freecodecamp.org/news/error-error-0308010c-digital-envelope-routines-unsupported-node-error-solved/ 试了百度来的几个方法, 都不好用. 又试了这个哥们儿的方法, 阅读全文
posted @ 2023-03-14 05:41 mayingdts 阅读(4727) 评论(0) 推荐(0) 编辑
摘要: 今天被React的class component中handler中的this指向所困扰. 具体而言, 搞不懂为何下列代码的this指向instance 1 class FooClass { 2 constructor(a) { this.a = a; } 3 xyz = () => { consol 阅读全文
posted @ 2023-03-13 07:37 mayingdts 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 改编自 一、伪元素有哪些 首先,先简单说一下伪元素都有哪些。伪元素有六个,分别是 ::after、::before、::first-line、::first-letter、::selection、::backdrop 。 在各大网页中最常用的伪元素,是::after和::before。 这几个伪元素 阅读全文
posted @ 2022-05-02 09:29 mayingdts 阅读(3916) 评论(0) 推荐(0) 编辑
摘要: 准备 通过download 并 import 下载图标包 For The Web. 此时是 version 6.1.1 https://fontawesome.com/download 解压, 将 css 和 webfonts 两个文件夹, 移动到项目中. 注意, 它俩必须放入同一个文件夹中 将 c 阅读全文
posted @ 2022-04-22 17:30 mayingdts 阅读(314) 评论(0) 推荐(0) 编辑
摘要: white space either space, tab, and EOL. word a sequence of characters containing only a-zA-Z0-9_. WORD a sequence of all characters except white space 阅读全文
posted @ 2022-03-21 11:45 mayingdts 阅读(14) 评论(0) 推荐(0) 编辑
摘要: https://github.com/iggredible/Learn-Vim/blob/master/ch05_moving_in_file.md https://github.com/wsdjeg/Learn-Vim_zh_cn/blob/master/ch05_moving_in_file.m 阅读全文
posted @ 2022-03-21 11:28 mayingdts 阅读(39) 评论(0) 推荐(0) 编辑
摘要: https://css-tricks.com/computed-values-more-than-meets-the-eye/#comment-1785337 The values defined for the style calculation process include the decla 阅读全文
posted @ 2022-03-19 16:31 mayingdts 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-03-19 16:20 mayingdts 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 1. length absolute length px relative length em 基于 its own 的font-size计算而来. 基于前点, 同样的 1 em, 在不同 element 上可能 calculated value 并不相同, 因为其 relative to 的 fo 阅读全文
posted @ 2022-03-19 16:04 mayingdts 阅读(24) 评论(0) 推荐(0) 编辑