[英]Single page javascript application - page and page transition management
I've been using jQuery mobile a lot recently and I really like the mechanism they have for managing pages (or views) in a single page application. 我最近一直在使用jQuery mobile,我真的很喜欢他们在单个页面应用程序中管理页面(或视图)的机制。 jQuery mobile handles the hiding and showing of the various views and the page transitions between views. jQuery mobile处理各种视图的隐藏和显示以及视图之间的页面转换。
So you define a page like so: 因此,您可以这样定义一个页面:
<div data-role="page" id="home"> BLAH ... </div>
and then you can easily navigate and transition to that page using a href: 然后您可以使用href轻松导航并过渡到该页面:
<a href="#home" data-icon="arrow-r">home</a>
Or they have various JavaScript methods to achieve the same thing: 或者他们有多种JavaScript方法可实现同一目的:
$.mobile.navigate("#home");
Is there a JavaScript library out there that is designed specifically to handle pages/views in a similar way? 是否有专门设计用于以类似方式处理页面/视图的JavaScript库?
Angular JS is a SPA goddess. Angular JS是SPA女神。 (Single Page Application) (单页应用程序)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.