Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我必须检查屏幕上的元素是否可见(用户是否滚动到元素?)。我的功能是回答“是”或“否”,但我怎样才能永久检查它?我怎样才能永久执行这个功能?如何捕捉元素的可见性?
只有本机javascript。
谢谢