CRIMX LOGO
scroll down
quote

"How do you know I'm mad?" said Alice.

"You must be," said the Cat, "or you wouldn't have come here."

— Lewis Carroll, Alice's Adventures in Wonderland

欢迎光临本博客!这里主要是记录 Web 前端相关的一些文章,偶尔涉及其它我感兴趣的东西。

quote

"Either write something worth reading or do something worth writing."

— Benjamin Franklin

最近文章:

闭包和作用域 • April 16, 2023

对于那些有一点JavasScript使用经验但从未真正理解闭包概念的人来说,理解闭包可以看做某种意义上的重生,但是需要付出非常多的努力和牺牲才能理解这个概念。闭包是基于词法作用域书写代码时所产生的自然结果,你甚至不需要为了利用他们而有意识地创建闭包。闭包的创建和使用在你的代码中随处可见。你缺少的是根据你自己的意愿来识别、拥抱和影响闭包的思维环境。

继续阅读 →

React Refs的多种用法归纳整理 • September 12, 2021

Refs 提供了一种方式,允许我们访问 DOM 节点或在 render 方法中创建的 React 元素。

继续阅读 →

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.

继续阅读 →

脚手架开发:命令注册和参数解析 • June 06, 2021

本篇会动手写很简单的命令注册和参数解析的实例。

继续阅读 →

查看全部文章

eat();

sleep();

code();

repeat();