开发者

Github-style page transitions?

开发者 https://www.devze.com 2023-03-01 04:34 出处:网络
Is there any example code for something like that (and somehow changing the URL without开发者_JS百科 forcing a reload, with no #)? Is it using HTML5 to replace history?They explain how they do this in

Is there any example code for something like that (and somehow changing the URL without开发者_JS百科 forcing a reload, with no #)? Is it using HTML5 to replace history?


They explain how they do this in their blog post and yes, it uses the HTML5 History API.

They even show you exactly how it's done in their jquery-pjax project.

Also, you can get example code for anything you see on the web via view source, finding the Javascript file, and then if it's minified passing it through something like http://jsbeautifier.org/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号