[英]jQuery “on” blur event
I have the following code in my app; 我的应用程序中有以下代码;
inputFld.on("blur.typeahd", function(){alert(1)});
Now there is inputFld DOM element on my page 现在我的页面上有inputFld DOM元素
But I do not see any element with a class of "typeahd" 但我没有看到任何类型的“typeahd”
Still my code goes inside the function and I get alert 1 仍然我的代码进入函数内部,我得到警报1
My question is if I am interpreting blur.typeahd incorrectly? 我的问题是,如果我正在解释blur.typeahd错误? Is typeahd an element in this case or something else?
在这种情况下,typeahd是一个元素还是别的什么?
Yes, you are getting it wrong. 是的,你弄错了。
here blur.typeahd
stands for event namespace 这里
blur.typeahd
代表事件名称空间
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.