简体   繁体   中英

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 handles the hiding and showing of the various views and the page transitions between views.

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:

<a href="#home" data-icon="arrow-r">home</a>

Or they have various JavaScript methods to achieve the same thing:

$.mobile.navigate("#home");

Is there a JavaScript library out there that is designed specifically to handle pages/views in a similar way?

Angular JS is a SPA goddess. (Single Page Application)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM