complex on function handler Jquery
This question already has an answer here:
It's an event namespace.
Per the jQueury docs on .on()
:
An event name can be qualified by event namespaces that simplify removing or triggering the event. For example, " click.myPlugin.simple
" defines both the myPlugin and simple namespaces for this particular click event. A click event handler attached via that string could be removed with .off("click.myPlugin")
or .off("click.simple")
without disturbing other click handlers attached to the elements. Namespaces are similar to CSS classes in that they are not hierarchical; only one name needs to match. Namespaces beginning with an underscore are reserved for jQuery's use.
click.bs.button.data-api
是一个名称空间为bs.button.data-api
的单击事件事件
上一篇: 无法使用'绑定'在硬绑定功能后更改绑定
下一篇: 复杂的函数处理程序Jquery