Jquery 在滚动页面上无声加载新URL
我已经看到了当你滚动页面时,页面悄悄加载的趋势。例如: 滚动浏览文章后,将加载一篇新文章,URL将发生更改Jquery 在滚动页面上无声加载新URL,jquery,html,loading,Jquery,Html,Loading,我已经看到了当你滚动页面时,页面悄悄加载的趋势。例如: 滚动浏览文章后,将加载一篇新文章,URL将发生更改 翻遍源代码,什么也找不到。有什么想法吗?是的,这些实现寻找用户的隐私,并通过ajax加载新内容 $(window).scroll(function() { if($(window).scrollTop() == $(document).height() - $(window).height()) { // ajax call get data from se
翻遍源代码,什么也找不到。有什么想法吗?是的,这些实现寻找用户的隐私,并通过ajax加载新内容
$(window).scroll(function() {
if($(window).scrollTop() == $(document).height() - $(window).height()) {
// ajax call get data from server and append to the div
// change url
}
});
看看这里:是的,这些实现寻找用户的隐私,并通过ajax加载新内容
$(window).scroll(function() {
if($(window).scrollTop() == $(document).height() - $(window).height()) {
// ajax call get data from server and append to the div
// change url
}
});
请看这里:使用F12工具,您可以看到加载了大量JavaScript代码。同时看看网络标签。记住你的目标:“对于无限滚动,反弹率是一个虚荣的统计”使用F12工具,你可以看到很多JavaScript代码被加载。同时看看网络标签。记住你的目标:“对于无限滚动,反弹率是一个虚荣的统计”