简体   繁体   中英

Handling in-page javascript for each ajax-retrieved page using History.js

How do i do this in the best possible way? Unobtrusive and keep calling jquery's live method?

Assume everything has to be loaded on document.ready and on ajaxComplete?

jQuery BBQ is supposed to be pretty nice. Demo here .

Here is history.js with demo here and to ajaxify your entire website with the HTML5 History API, History.js and jQuery this snippet of code is all you need.

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