简体   繁体   中英

History Api: How to store a page

To be specific i will give a live example:

http://www.shopcade.com/rodrigopires/lists/5415e86366a92f4f158b4848/funky-shoes

At this page when a product is clicked it opens a frame-like page. On this page you can navigate through products. But when you click the close button, you can always go back to list page.

I believe history api has been used, but i really don't understand how they stored whole page content through all navigation.

There's a very similar demo application explained here:

https://css-tricks.com/using-the-html5-history-api/

It uses Ajax, which I suspect your example also uses.

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