# focus / focusin / focusout / blur 事件

focus:当focusable元素获得焦点时,不支持冒泡; focusin:和focus一样,只是此事件支持冒泡; blur:当focusable元素失去焦点时,不支持冒泡; focusout:和blur一样,只是此事件支持冒泡;

focusinfocusout的好处:

比如在body上监听这两个事件,可以捕获所有地方的focus