HTML:document.activeElement
摘要:今天遇到一个很郁闷的问题:document.activeElement获取当前获得焦点的元素,在chrome总是得到body,后来经过试验得到结果如下:document.activeElement三大浏览器(ie、firefox、chrome)都支持,但,针对的对象不同,返回的值也不同。IE:doc...
阅读全文
posted @ 2014-08-27 17:28
浙公网安备 33010602011771号