2

I have already developed ajax enabled web site. Most of the time we do partial rendering and use some templates to render content in the client side. The issue is now we need to support browser back button .

I tried to use Sammy.js but it seems like we need to change every ajax calls and events to use sammy to keep the history with the client. Is there any other library like History.js or something else so that we can do it in easier or do in in a separate module without affecting all.

4

1 回答 1

1

就我对该主题的有限知识而言,我认为仍然没有办法隐含地做到这一点。

YUI 的做法似乎与 Sammy 有所不同,请检查是否有帮助。

http://yuilibrary.com/yui/docs/history/

http://yuiblog.com/sandbox/yui/3.2.0pr1/examples/history/history_tabview.html#tab=2

于 2012-12-07T03:23:03.813 回答