Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文章更新 [ 2016-02-14 ] #27

Open
yutingzhao1991 opened this issue Feb 18, 2016 · 0 comments
Open

文章更新 [ 2016-02-14 ] #27

yutingzhao1991 opened this issue Feb 18, 2016 · 0 comments
Labels

Comments

@yutingzhao1991
Copy link
Owner

  • 利用 jQuery.when 简化代码 (YIXUNFE)

    利用 jQuery.when 简化代码最近有一些项目,是从已有的功能上新增一些数据,比如个人账户中新增一些数据。后端并没有在原有接口上提供所需数据,而是希望我们调用另一个接口,这个接口仅仅提供新增的数据。由于新接口和旧接口在数据上并没有依赖关系,所以我们可以等两个接口都请求完成后将数据填充到 DOM 结构中。在这个问题的解决过程中就出现了一些不太简洁的代码,比如:```javascriptvar len = 2, data = {}...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant