“jQuery.event.special"的文档在哪里?API(用于自定义事件)?

2022-01-11 00:00:00 jquery jquery-plugins javascript

我正在创建 textchange jQuery 插件,它使用 jQuery.event.special API 创建自己的自定义事件(textchangehastext、和 notext).

I'm creating a fork of the textchange jQuery plugin, which uses the jQuery.event.special API to create its own custom events (textchange, hastext, and notext).

我要为 $.event.special API 查找 文档 快疯了!我搜索了 jQuery 的网站,没有发现任何提及 special 功能的内容.我发现了几个讨论 API 的博客,甚至参考了 一个链接,但该页面根本没有谈论它.

I'm going crazy trying to find the documentation for the $.event.special API! I've searched jQuery's site and found nothing that mentions the special functionality. I've found several blogs that talk about API and even reference a link to it, but that page does not talk about it at all.

有人可以指点我有关此特殊"的一些文档吗?应用程序接口?我主要对jQuery的文档感兴趣,因为我想知道官方"的此 API 的来源.

Can someone please point me toward some documentation for this "special" API? I'm mainly interested in jQuery's documentation, because I want to know the "official" source of this API.

我查看了 jQuery 的源代码,他们使用 $.event.special API 处理某些事件(包括 readyhover),所以它显然没有像我之前想象的那样过时.

I looked at jQuery's source, and they use the $.event.special API for certain events (including ready and hover), so it's obviously not obsolete as I previously thought.

推荐答案

http://benalman.com/news/2010/03/jquery-special-events/

该网站似乎有很好的文档记录,并且应该包含您应该了解的有关 jQuery 特别活动的所有信息.

The site seems to be well documented and should have everything you should ever need to know about the jQuery Special Events.

相关文章