阅读背景:

如何在AJAX请求期间在CoffeeScript中保留父级的上下文

来源:互联网 

I want to go through an object in CoffeeScript and for every single item in that object I want to make an AJAX call (using jQuery). In the callback mechanism of the AJAX call I want to print then the data of the item that has caused the request but in my callback I lose the reference to the initial context. The context is always the same:I want to go through an object in CoffeeScript




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

分享到: