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

关于路由文件 #1

Open
paddingC opened this issue Aug 9, 2017 · 1 comment
Open

关于路由文件 #1

paddingC opened this issue Aug 9, 2017 · 1 comment

Comments

@paddingC
Copy link

paddingC commented Aug 9, 2017

router文件夹里面的index.js里的resolve具体的作用是什么呢

@k-water
Copy link
Owner

k-water commented Aug 9, 2017

该写法主要功能是路由的异步加载,使用了webpack的API,import的封装是Promise,具体请参考
Promise
webpack import()

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