阅读背景:

防止在单击事件中重复调用异步加载函数

来源:互联网 

I have a callback function that loads a page of data at a time. The function gets called/triggered when the back and next links are clicked. I run into issues with the animation and the load completing in time when the end user does fast, subsequent clicks of next link and repetitively calls the load function. I realize that this is an async call, but is there a way to queue or pause the loads/animations so that one load is not running before the other one is finished?I have a callback function that loads a page of




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: