2017-06-27 13:13:13
2017-06-27 13:15:01
JQuery focus()和focusin()的区别详解
简单的说就是focus()不支持冒泡而focusin()支持冒泡举例说明: HTML 如果是focus(),则必须写出成 $('input').on('focus',function(){ alert(123); });写成 $('#div1').on('focus',fu
2622
2017-06-27 13:19:00
2017-06-27 13:23:37
2017-06-27 13:24:57
jquery中focusin与focusout的使用详解
jquery 的focusin和focusout方法的使用focusin(fn)概述在每一个匹配元素的focusin事件中绑定一个处理函数。当一个元素,或者其内部任何一个元素获得焦点的时候会触发这个事件。这跟focus事件区别在于,他可以在父元素上检测子元素获取焦点的情况。参数fnFunction在每一个匹配元素的focusin事件中绑定的处理函数。
1902
2017-06-27 13:26:43
2017-06-27 13:28:13
2017-06-27 13:31:13
2017-06-27 13:34:10
jquery如何实现div与span的keydown事件详解
The keydown event is sent to an element when the user first presses a key on the keyboard. It can be attached to any element, but the event is only sent to the element that has the focus. Focusable
1821
2017-06-27 13:36:06