获取应用程序中迄今为止发生的所有事件

发布于 2024-12-24 21:13:16 字数 470 浏览 2 评论 0原文

我需要知道我的网络应用程序从加载时起发生的事件。有什么方法可以获取事件,原因是我需要存储这些事件是当用户想要直接转到执行一些操作后得到的结果时,我可以对一系列事件执行 PostEvent 以获得特定结果,或者有没有其他方法可以在不存储事件的情况下执行相同的操作?

示例:

User clicks on button1 -button1 is disabled,
User Click on button2 - button2 is disabled,
User clicks on button3 -button3 is disabled,
User Click on button4 - button4 is disabled,

现在用户已执行 4 个操作来禁用所有四个按钮。 如果用户想达到第一个 3 个按钮时的状态,我将为他执行单击 3 个按钮的 PostEvent。

注意示例并不完全是我所需要的。这只是为了解释目的。

I need to know the events occurred in my web app, from the time it was loaded. Is there any way to get the events, The reason is I need to store those events is when ever user wants to go directly to result which he got after performing few actions, I can do PostEvent on series of events to reach that particular result, or is there any other way to do the same with out storing events?

Example:

User clicks on button1 -button1 is disabled,
User Click on button2 - button2 is disabled,
User clicks on button3 -button3 is disabled,
User Click on button4 - button4 is disabled,

Now user has performed 4 actions to get all the four button disable.
If user wants to reach the state when 1st 3 buttons I will do PostEvent of clicking 3 buttons for him.

Note Example is not exactly what I need. It's just for explanation purpose.

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

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

发布评论

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

评论(2

离不开的别离 2024-12-31 21:13:16

GWT 中不支持此操作,您必须自己完成。记录您感兴趣的每个操作/事件(可能使用命令模式),并记录所有这些操作/事件以供以后重播。

There's no support for this in GWT, you have to do it yourself. Record every action/event you're interested in, possibly using the command pattern, and log all of them for later replay.

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