ajaxQueue:轻松排队jQuery ajax请求

时间:2021-05-21 19:39:38
【文件属性】:
文件名称:ajaxQueue:轻松排队jQuery ajax请求
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-21 19:39:38
JavaScript ajaxQueue 这个jQuery插件创建了一种简单的方法来排队ajax请求,使它们能够按顺序执行,但仍异步运行。 当由于不安全/破坏性的POST / PUT / DELETE请求而试图处理应用程序中的竞争条件时,这可能非常有用。 例如,采取以下事件顺序: 1. User updates data on a page 2. Application submits a POST to save the new data to the database 3. User updates the same data again 4. Application submits a POST to save the new data to the database 如果在步骤2的POST之前在服务器上处理了步骤4的POST,则数据将不正确。 现在,请记住,这是一个非常简单且人为设计的示例,
【文件预览】:
ajaxQueue-master
----src()
--------ajaxQueue.js(3KB)
----spec()
--------spec.js(114B)
--------support()
----gulpfile.js(2KB)
----LICENSE(1KB)
----README.md(3KB)
----dist()
--------ajaxQueue-1.1.0.js(3KB)
--------ajaxQueue-1.1.0.min.js(903B)
----.gitignore(300B)
----package.json(866B)

网友评论