更新面板中的事件冒泡

发布于 2024-07-29 03:23:23 字数 80 浏览 1 评论 0原文

当您使用更新面板进行更新时,我会丢失所有将它们附加到更新面板内的 DOM 元素的 jquery 元素。 当更新面板触发时有没有办法重新连接这些?

When you do an update with update panel I loose all my jquery elements that attached them too the elements of the DOM inside the update panel. Is there a way to reattach these when update panel fires?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

女中豪杰 2024-08-05 03:23:23

发生这种情况是因为 ASP.NET 更新面板将您之前附加功能的元素替换为新元素。 考虑使用 jQuery 的 live() 实用函数。

This is happening because the elements you had previously attached functions to are replaced by new elements by the ASP.NET update panel. Consider using jQuery's live() utility function.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文