# 为动态推送的 html 添加点击事件监听器

**URL:** <https://meta.discourse.org/t/click-event-listener-for-dynamically-pushed-html/249358>\
**Category:** Development\
**Created:** [2022年十二月19日 12:05 UTC](https://meta.discourse.org/t/click-event-listener-for-dynamically-pushed-html/249358 "2022-12-19T12:05:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ss90](https://avatars.discourse-cdn.com/v4/letter/s/e19adc/32.png) [@ss90](https://meta.discourse.org/u/ss90)\
**Post date:** [2022年十二月19日 12:05 UTC](https://meta.discourse.org/t/click-event-listener-for-dynamically-pushed-html/249358/1 "2022-12-19T12:05:29Z")

</div>

您好，在上次 discourse 更新后，我用于捕获动态推送 HTML 事件的代码停止工作了。

有人能给我一些关于如何实现这一目标的建议吗？

---

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2022年十二月19日 12:15 UTC](https://meta.discourse.org/t/click-event-listener-for-dynamically-pushed-html/249358/2 "2022-12-19T12:15:37Z")

</div>

> [@ss90](#):
>
> 您好，在上次 discourse 更新后，我用于捕获动态推送 HTML 事件的代码停止工作了。

您能否：

1. 分享您遇到的确切错误？
2. 描述您为解决此问题已采取的步骤？
3. 提供您现有代码的链接？

这或许能帮助社区为您提供帮助……
