阅读背景:

如何订购几个异步JQuery查询的结果?

来源:互联网 

I'm pulling in information from several web services to display on a web page. I'd like to be able to order the results, but keep the fetching dynamic. However, the way I've structured the code means that the elements get inserted into the DOM in the order that the requests complete, which is non-deterministic. How can I guarantee a specific order, but avoid inserting 'dud' elements if one of the results errors out instead of returning valid info?I'm pulling in information from several web ser




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

分享到: