我使用php从mongodb数据库中获取数据,并将其显示为html元素。使用jquery,我想单击我所拥有的每一项上的一个按钮,并获得单击项的元素标题并对其进行console.log。这是我的产品容器,包含创建的元素。php
//get products and display them as html
我正在尝试创建一个jQuery脚本,以确定在给定的坐标下所需的元素是否是可见的(而不是隐藏在其他元素中)。为了实现这个目标,我尝试使用document.elementFromPoint函数,但它似乎不起作用(参见)。100x100 px, so I suppose to find it here debug.html;else {
debug.html("n