Note

【转载】Status 还是 State

Status 还是 State

代码中 state 和 status 区别:

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

例子:

  • 交通灯状态: red -> green -> yellow
  • 付款结果:success / failed
0
0
...
...
...
Avatar