作者热门文章
- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我以前肯定使用过这段代码,但这次它会抛出一个错误。
我的代码:
$(document).click(function (e) {
var getPoint = document.getElementFromPoint(e.pageX,e.pageY);
alert(getPoint);
});
我得到以下错误:
document.getElementFromPoint is not a function
最佳答案
在 Firefox 中这个函数叫做 document.elementFromPoint()
https://developer.mozilla.org/En/DOM:document.elementFromPoint
关于javascript - 获取 ElementFromPoint(x,y) - whaaaat?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4132233/
我以前肯定使用过这段代码,但这次它会抛出一个错误。 我的代码: $(document).click(function (e) { var getPoint = document.getElemen
我是一名优秀的程序员,十分优秀!