var dom=document.activeElement;//获取当前焦点所在元素 转载于:https://www.cnblogs.com/colorfullifes/archive/2012/10/24/2737029.html