开发者

Wondering if this code excerpt can represent a event listener

开发者 https://www.devze.com 2023-01-13 16:30 出处:网络
Can we call this: $(\'#nomeInput\').keypress(functio开发者_StackOverflow中文版n(){ //code here...

Can we call this: $('#nomeInput').keypress(functio开发者_StackOverflow中文版n(){ //code here... an event listener?

Thanks.


Yes. The function you pass to the keypress method is an event listener.


at least jQuery does ... so I would say YES

0

精彩评论

暂无评论...
验证码 换一张
取 消