Sench 触摸 MVC

发布于 2024-12-06 18:49:36 字数 160 浏览 3 评论 0原文

我对 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一城柳絮吹成雪 2024-12-13 18:49:36

找到下面的链接,您将获得使用 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

吃颗糖壮壮胆 2024-12-13 18:49:36

这个问题回答了它对于我来说,请由路易斯提供。据我所知,您可以使用调度和控制器仅加载所需的代码,而不是在页面加载时一次性加载所有代码,以及更好地控制事件处理。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文