javascript - 创建 JS chrome 片段以在无限循环中自动上下滚动页面
问题描述
我需要在屏幕上显示 Jira 仪表板的内容,并在无限循环中自动上下滚动。我试图创建 Chrome 代码段,但 for/while 循环似乎不起作用。
function scroll(speed) {
$('html, #ghx-pool').animate({ scrollTop: $(document).height() - $(window).height() }, speed, function() {
$(this).animate({ scrollTop: $(document).height() }, speed);
});
}
while(true){
setInterval(scroll(25000), 10);
}
解决方案
推荐阅读
- ios - 使用 NavigationView 和 NavigationLink 的 SwiftUI 快速操作
- python - 如何打印 5 个字符的 unicode
- python - ValueError:无法将大小为 2070 的序列复制到维度为 2 的数组轴
- python-3.x - 表示带有要加载到数据库中的日期时间对象的行的字典列表
- r - 如何使用 ggarrange() 或类似方法手动调整合并图的高度
- cmake - CMake add_custom_command() POST_BUILD 生成器表达式扩展不起作用
- javascript - JS障碍物和碰撞CSS事件不起作用
- javascript - 将EventListener添加到元素clientWidth vue 3
- c - 如何在 C 中动态分配 int (*p)[n] 形式的指针?
- spring - 如何使用 spring native graalvm 创建带有 postgres 的 Springboot App?