document.activeElement和event.srcElement的区别

activeElement是focus的对象(Identifies the element that has the focus.
This read-only property is set when you select a control in the interface or use the focus method.)

srcElement是激发事件的对象(Specifies the element that fired the event.)

你可能感兴趣的:(document)