jquery on
https://api.jquery.com/on/
.on( events [, selector ] [, data ], handler )Returns: jQuery
Description: Attach an event handler function for one or more events to the selected elements.
-
version added: 1.7.on( events [, selector ] [, data ], handler )
-
eventsType: StringOne or more space-separated event types and optional namespaces, such as "click" or "keydown.myPlugin".
-
selectorType: StringA selector string to filter the descendants of the selected elements that trigger the event. If the selector is
null
or omitted, the event is always triggered when it reaches the selected element. -
dataType: AnythingData to be passed to the handler in
event.data
when an event is triggered. -
handlerA function to execute when the event is triggered. The value
false
is also allowed as a shorthand for a function that simply doesreturn false
.
-
-
version added: 1.7.on( events [, selector ] [, data ] )
-
eventsType: PlainObjectAn object in which the string keys represent one or more space-separated event types and optional namespaces, and the values represent a handler function to be called for the event(s).
-
selectorType: StringA selector string to filter the descendants of the selected elements that will call the handler. If the selector is null or omitted, the handler is always called when it reaches the selected element.
-
dataType: AnythingData to be passed to the handler in
event.data
when an event occurs.
-
The .on()
method attaches event handlers to the currently selected set of elements in the jQuery object. As of jQuery 1.7, the .on()
method provides all functionality required for attaching event handlers. For help in converting from older jQuery event methods, see .bind()
, .delegate()
, and .live()
. To remove events bound with .on()
, see .off()
. To attach an event that runs only once and then removes itself, see .one()
作者:Chuck Lu GitHub |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
2017-06-28 .net framework tools
2016-06-28 open Command window here
2016-06-28 Adding a model