77

服务端指南 | 状态机设计

 6 years ago
source link: https://juejin.im/post/59f9161f51882554f6661e27
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
原文地址:服务端指南 | 状态机设计博客地址:blog.720ui.com/ 状态机中,每个状态有着相应的行为,随着行为的触发来切换状态。其中一种做法是使用二维数组实现状态机机制,其中横坐标表示行为,纵坐标表示状态,具体的数值则表示当前的状态。 我们以登录场

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK