查找用户在屏幕上看到的产品
我有一个产品清单。在产品列表中,滚动显示3个产品。如何访问用户当时看到的3个产品?产品具有类名产品
。
<div class="product">
<span>price:2</span>
</div>
<div class="product">
<span>price:2</span>
</div>
I have a product list. In the product list, scrolling shows 3 products. How can I access the 3 products that the user sees at that moment? Products have the class name product
.
<div class="product">
<span>price:2</span>
</div>
<div class="product">
<span>price:2</span>
</div>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这就是您可以找到出现在用户屏幕上的项目的方式。
这就是我解决的方式。
This is how you can find the item(s) that appear on the user's screen.
This is how I solved it.