Skip to content

每一个 state 都有

  • Enter
  • Excute
  • Exit 等状态 每一个状态内实现自己的逻辑就好; 然后写好切换逻辑就可以得到一个比较解耦合的系统

然后每个 state 中的方法,都可以作为某事件的广播来呼叫其他组件等,就变得简单高效易于维护

Released under the MIT License.