0

sencha touch 2 路由是否适用于 Deft JS ?我正在使用 Deft.mvc.ViewController 而不是 Ext.app.Controller 扩展我的控制器,并且看起来路由不起作用。

4

1 回答 1

0

它似乎不起作用:https ://github.com/deftjs/DeftJS/issues/44

作为一种解决方法,我会尝试使用 DeftJS 控制器作为 ViewControllers 来控制应用程序的逻辑,并使用 ExtJS 控制器作为 RouteControllers 来处理路由。要将它们分开,请将 ViewControllers 放在视图和模型旁边,就像在 ExtJS 5 中所做的那样。RouteControllers 应该转到 app/controllers 目录。

另一种选择是使用 Ext.ux.Router。

于 2015-02-20T22:52:21.623 回答