无限Ajax Scroll jQuery - 在scroll / pageChange上更新标题

时间:2017-05-17 18:18:07

标签: javascript jquery infinite-scroll jquery-ias

滚动时是否有可能让TITLE在头部得到更新?

我正在使用Infinite Ajax Scroll。 http://infiniteajaxscroll.com

var ias = jQuery.ias({
container:  '#posts',
item:       '.post',
pagination: '#pagination',
next:       '.next'
});

jQuery.ias().on('pageChange', function(pageNum, scrollOffset, url) {
    // Update Page Title
});

1 个答案:

答案 0 :(得分:0)

我在Infinite Ajax Scroll中遇到了同样的问题。 我发现的唯一解决方案是在“已加载”事件中从“数据”中提取标题。

if (((SolidColorBrush)x.Background).Color == Colors.Blue)
{ 
    ...
}