Html 文本输入撤消不起作用

发布于 2024-12-26 22:44:59 字数 325 浏览 4 评论 0原文

我遇到一个问题,html 文本框和文本区域的撤消功能(ctrl+z 和右键单击 > 撤消)被禁用。这种情况发生在 ASP.NET 生成的页面上,其中包含大量 Silverlight、JavaScript、JQuery 和 Ajax。大约 90% 的情况下会发生这种情况,其中 10% 的情况下撤消工作正常。仅在 IE (8 + 9) 中查看页面时才会出现这种情况,在 Chrome、Opera 和 Firefox 中运行良好。

对我来说,在这里发布代码不太实际,因为代码太多,而且问题可能深埋在其中的任何地方。我更想知道是否有人以前遇到过这个问题,或者这是否是一个已知问题。谁能提出任何可能为我指明正确方向的建议?

I'm having a problem where the undo function (both ctrl+z and right click > undo) of html text boxes and text areas is being disabled. This is happening on pages generated from ASP.NET, and which incorporate a lot of Silverlight, JavaScript, JQuery and Ajax. It happens about 90% of the time, 10% of the time the undo works OK. It only happens when viewing the page in IE (8 + 9), it works fine in Chrome, Opera and Firefox.

It's not really practical for me to post the code on here, as there is so much of it and the problem could be burried deep anywhere in it. I'm more wondering if anyone had come across this before, or if it is a known issue. Can anyone suggest anything that might point me in the right direction?

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

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

发布评论

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

评论(1

川水往事 2025-01-02 22:44:59

页面上有 JS 定时器吗?即使他们不更新特定的控件,它们也可能导致控件历史记录被擦除。我怀疑这是IE的一个错误。

Have you got any JS timers on the page. Even if they don't update the particular controls they can cause the control history to be wiped. I suspect it's a bug in IE.

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