JavaScript 的状态图就像 Sproutcore 的状态图一样?
在 Sproutcore 中,我可以使用一个状态图框架来为应用程序提供状态,该状态保存了您在不同状态下可以执行的操作。
我想知道是否有一个类似的独立状态图框架我可以在 Sproutcore 之外使用,例如。与 YUI3 结合使用。
In Sproutcore there is a statechart framework I can use for giving the application states which holds actions for what you can do in different states.
I wonder if there is a similar standalone statechart framework I can use outside Sproutcore eg. in conjunction with YUI3.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
你提这个问题大约提前了十天。 Michael Cohen 发现了这个:https://github.com/jakesgordon/javascript-state-machine/ 似乎已于 6 月 1 日浮出水面。
You were about ten days early asking the question. Michael Cohen found this: https://github.com/jakesgordon/javascript-state-machine/ which appears to have surfaced June 1.
有一个名为 Stativus 的框架:
https://github.com/etgryphon/stativus
它本质上是因子分解Sproutcore 状态图框架的出版本。我正在项目中使用它并且对此非常满意。
不幸的是,文档太简单了,但是库很小并且易于使用。我现在正在撰写有关它的博客文章,它将发布在我的博客 http://zubairov.posterous.com 中很快。
There is a framework called Stativus:
https://github.com/etgryphon/stativus
It is essentially the factored out version of Sproutcore state chart framework. I'm using it on the project and quite happy with it.
Documentation is unfortunately too simplistic, however library is quite small and easy to use. I'm working on the blog post about it right now, it will be posted in my blog http://zubairov.posterous.com soon.
我写了这个,它也应该完成这项工作: https://github.com/jbeard4/SCION
I wrote this, which should also do the job: https://github.com/jbeard4/SCION
FSM !== 状态图。我在此处写了一篇关于 FSM 和 Statecharts 比较的答案
FSM !== Statecharts. I wrote an answer about comparison of FSM and Statecharts here
正如我在另一个问题中发布的那样,还有 David Durman 的 statechart。
还有一个新的:xstate,https://github.com/davidkpiano/xstate
As I posted in another question, there is also statechart by David Durman.
And, a new one: xstate, https://github.com/davidkpiano/xstate