队列用户操作 - Ajax 模式?
我已经使用过 Gmail 无数次,想知道这种情况背后是否有标准模式:
- 用户想要在中附加一个大文件 电子邮件,单击“附加”,然后 选择必须的文件 附有
- 一些处理需要 地点(上传到服务器、病毒 扫描等),当这是 发生“上传附件” 显示消息
- 在此操作完成之前 , 用户点击发送。 “发送”是 直到上传完成后才进行处理 成功的。用户操作(上传然后发送)已排队
对于用户操作需要排队而不阻塞 UI 的此类场景是否有标准的实现模式?更奇怪的是,有任何适用于这种情况的 jQuery 插件吗?
I have used gmail countless times and was wondering if there are standard patterns behind this scenario:
- user wants to attach a big file in
the email,clicks attach and the
selects the file which has to be
attached - There is some processing which takes
place (uploading to server,virus
scans etc) and when this is
happening an "uploading attachment"
message is displayed - Before this action could complete,
the user clicks send. The "send" is
not processed until the upload is
successful. The user actions(upload then send) are queued
Is there a standard implementation pattern for these kind of scenarios where user actions need to be queued without blocking the UI? And more curiously, any jQuery plugin exists for such scenarios ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不太确定这里需要的设计模式,但我将首先仔细研究命令链设计模式和委托模式。
Not very sure of the design pattern needed here, but I will start with closely looking at Chain Of Command Design Pattern and delegate pattern.