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

求助 zrender中怎么直接加载模块 #59

Closed
xiaobao143 opened this issue Jul 12, 2016 · 1 comment
Closed

求助 zrender中怎么直接加载模块 #59

xiaobao143 opened this issue Jul 12, 2016 · 1 comment

Comments

@xiaobao143
Copy link

xiaobao143 commented Jul 12, 2016

require.config({
    baseUrl:"./js",

});
var test=require(['zrender']);

为什么 test 这样加载是undefined,我怎么才可以将zrender中的模块逐个加载而不是用回调函数的形式进行使用?大神给指点一下

@erik168
Copy link
Contributor

erik168 commented Sep 22, 2016

你可以有一个入口模块,比如main,在这个main里可以直接require任何东西。然后在html中async require这个main

@erik168 erik168 closed this as completed Sep 22, 2016
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

2 participants