Page Navigation in Sencha Touch?

感情迁移 提交于 2019-12-23 02:43:34

问题


I am new to Sencha Touch, and wonder how page navigation works. so far, the best i found was something like:

    var redirect = 'page2.html'; 
    window.location = redirect;

and to prevent unnecessary fetching, cache all .js and style using app.manifest.

Any recommendation? Is there a way similar to page navigation in JQuery mobile?


回答1:


As far as I'm aware, Sencha Touch does not support page navigation the way jQuery mobile does.

If you really have to redirect (and make a page refresh), then I believe the only way of doing it is the way you have described (window.location).

However, in Sencha Touch, there is often no need to do redirects. You could easy create a fullscreen Panel, and then change the content of this panel dynamically (i.e. navigate to a page). Have a look at one of the examples, to get the idea: http://dev.sencha.com/deploy/touch/examples/oreilly/



来源:https://stackoverflow.com/questions/5754849/page-navigation-in-sencha-touch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!