ISheep

ISheep

Badminton | Coding | Writing | INTJ
github

【转载】Status 还是 State

Status 还是 State

代码中 state 和 status 区别:

  • 有状态迁移关系:state
  • 没有状态迁移关系:status

例子:

  • 交通灯状态: red -> green -> yellow
  • 付款结果:success /failed
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.