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

引入小程序版本时,文件中的App变量名于其他第三方JS发生冲突 #68

Open
xiaoding345 opened this issue Mar 27, 2023 · 1 comment

Comments

@xiaoding345
Copy link

版本

  • Mitojs Version [/* @mitojs/wx-mini version ' + 3.0.1 */]

引入方式
在小程序app.js中

const MITO = require('js文件')
MITO.init({
})

初始化之后, 引入另一个js文件后, 调用其中的api时报错. 比如源代码中 App.b.c, 报错 b为undefined.
因此怀疑是App被覆盖.
如果不初始化MITO. 则不会报错.

@bfrontend
Copy link

请提供示例代码

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