"How do you know I'm mad?" said Alice.
"You must be," said the Cat, "or you wouldn't have come here."
"How do you know I'm mad?" said Alice.
"You must be," said the Cat, "or you wouldn't have come here."
欢迎光临本博客!这里主要是记录 Web 前端相关的一些文章,偶尔涉及其它我感兴趣的东西。
"Either write something worth reading or do something worth writing."
最近文章:
闭包和作用域 • April 16, 2023
对于那些有一点JavasScript使用经验但从未真正理解闭包概念的人来说,理解闭包可以看做某种意义上的重生,但是需要付出非常多的努力和牺牲才能理解这个概念。闭包是基于词法作用域书写代码时所产生的自然结果,你甚至不需要为了利用他们而有意识地创建闭包。闭包的创建和使用在你的代码中随处可见。你缺少的是根据你自己的意愿来识别、拥抱和影响闭包的思维环境。
React中PureComponent的浅比较 • September 12, 2021
PureComponent是react中创建组件的一种方式,可以减少不必要的更新,进而提升性能。这也是React应用性能优化的一种方式。
脚手架开发:Lerna简介 • July 08, 2021
Lerna is a tool that optimizes the workflow around managing multi-package repositories with git and npm.