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一次 #438

Closed
sznforhub opened this issue Mar 3, 2021 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@sznforhub
Copy link

sznforhub commented Mar 3, 2021

你好,请问一下在工程中我已经将某个类定义为了全局变量,在其他文件使用该全局变量时,经常会自动添加对该类的require.有什么方法能避免重复require的么?

@sumneko
Copy link
Collaborator

sumneko commented Mar 3, 2021

请提供一下截图或演示代码

@sznforhub
Copy link
Author

image
image
image
image

@sumneko sumneko added the bug Something isn't working label Mar 3, 2021
@sumneko sumneko closed this as completed in b397307 Mar 3, 2021
@sznforhub
Copy link
Author

谢谢大佬!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants