jQuery查询

时间:2021-02-12 17:12:44
【文件属性】:
文件名称:jQuery查询
文件大小:858KB
文件格式:ZIP
更新时间:2021-02-12 17:12:44
JavaScript $ .poll 允许您轮询AJAX呼叫,直到满足您的预定义条件。 在操作完成之前显示微调框的理想选择。 建立 API /* url: Points to the GET endpoint from where to poll interval_in_milliseconds: Interval between calls to the url terminator_callback: A callback function that returns true to indicate end of polling */ $ . poll ( urlToPoll , intervalInMilliseconds , terminatorCallback ) $ . poll ( 'http://my/url' , 100 , ( xhr , status , data ) => {
【文件预览】:
JQueryPoll-master
----yarn.lock(38KB)
----spec()
--------poll_spec.js(1KB)
--------sinon-7.4.1.js(3.5MB)
----.travis.yml(182B)
----README.md(635B)
----poll.js(680B)
----.gitignore(12B)
----karma.conf.js(2KB)
----package.json(769B)

网友评论