0%

学习使用 Mobx

在知乎上看到了一个很好的使用 mobx 配合 hooks 使用的例子:

Read more »

解决控制台 MobX 警告

MobX: Since strict-mode is enabled, changing (observed) observable values without using an action is not allowed

MobX 在启用严格模式时,修改 observable state 的操作必须在 action 中进行。在异步动作的回调中执行的代码是不会被 action 包装的。在回调中修改 observable state 是无法通过 enforceActions 检查的。官方文档的解决办法是使用 Flow。但是因为需要用到 generator 和 yield,我选择使用了更简单的方法。

Read more »

小程序踩坑

之前也有用过小程序,最近学习了下小程序的云开发,记录下学习小程序遇到的一些问题。

Read more »

Look at these 2 sentences:

  • Jane is walking to the library.
  • Sarah is walking towards the library.

to and towards are prepositions to describe movement.

Both of these sentences are grammatically correct. But there is a slight difference in the meaning. In this lesson, you will learn the difference.

Read more »

Hexo 使用 和部署

Hexo 简介

Hexo 是一个依赖 Node.js 的博客框架,可以在本地生成静态的博客网页再上传到自己的服务器或者 Github,非常的简单方便。

Hexo 使用

Read more »

目前各个网站使用的font-family

  • 知乎
1
font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,PingFang SC,Microsoft YaHei,Source Han Sans SC,Noto Sans CJK SC,WenQuanYi Micro Hei,sans-serif;
  • Github
1
font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;
  • CSS-Tricks
1
font-family: Sentinel SSm A,Sentinel SSm B,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol
Read more »