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

使用require.async调用的模块只能在回调里用? #15

Closed
xiaoyann opened this issue Jan 23, 2015 · 3 comments
Closed

使用require.async调用的模块只能在回调里用? #15

xiaoyann opened this issue Jan 23, 2015 · 3 comments

Comments

@xiaoyann
Copy link

当我有很多模块都是异步调用时,回调是不是太麻烦了?还是有其他用法?

@2betop
Copy link
Contributor

2betop commented Jan 23, 2015

啥意思?require.async 不是只能在回调里面调用啊

@oxUnd
Copy link
Contributor

oxUnd commented Jan 23, 2015

require.async(['a', 'b', 'c', 'd'], function (a, b, c, d) {
    //balabalabala...
});

Too Simple!

@xiaoyann
Copy link
Author

嗐,忘了模块化库都是支持[]的了,谢谢了!

@xiaoyann xiaoyann changed the title 使用require.async调用模块只能在回调里用? 使用require.async调用的模块只能在回调里用? Jan 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants