Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 jsDuck 中记录的最佳方式是什么:
$(document).trigger('myCustomEvent');
我建议您将其记录为 jQuery 类的成员:
/** * @member jQuery * Some docs... */ trigger: function() { ... }