我有一个检查元素是否来自的方法。并尝试运行测试以检查元素是否在视图中。 var top = el.getBoundingClientRect().top, rect, el = el.parentNode; rect = el.getBoundingClientRect(); el = el.parentNode;
} while (el != document.bod
此方法的文档说明:“在指定位置弹出菜单。”但参数似乎描述了一种不同的情况:The menu item to be positioned at the specified location in the view.
The location in the view coordinate system to display the menu item.
The view to display the menu item over.
这是我到目前为止在inview中得到的代码: element : $('#basic-waypoint-cyberwrath无论我滚动到ID多少次,它都会在inview中很好地提醒我,它会一直触发提醒功能。但当我使用点击功能时。('basic-waypoint-cyberwrath'); new Wa