Sench 触摸 MVC
我对 MVC 还很陌生,我已经在我的 Sencha 触摸应用程序中实现了它。我的问题是,与仅使用常规 js 函数相比,实现 Sencha Touch 控制器 Ext.Controller 并分派给它有什么优势?根据我的经验,您可以对两者执行相同的操作,但 Ext.Controller 需要更多代码来完成。
I am pretty new to MVC and I have implemented it in my Sencha touch app. My question is what is the advantage of implementing the Sencha Touch controller Ext.Controller and dispatching to it over using just regular js functions instead? In my experience you can do the same with both but Ext.Controller requires a bit more code to do.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
找到下面的链接,您将获得使用 sencha touch 逐步清晰的 MVC 方法
sencha-touch-mvc-application-from-scratch
find this below link, you will get clear step by step approach to MVC using sencha touch
sencha-touch-mvc-application-from-scratch
这个问题回答了它对于我来说,请由路易斯提供。据我所知,您可以使用调度和控制器仅加载所需的代码,而不是在页面加载时一次性加载所有代码,以及更好地控制事件处理。
This question answered it for me, kindly provide by Luis. As for as I can tell you can use the dispatch and the controller to load only the code needed instead of all at once on page load as well as better control on event handling.