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

你好 为什么在小程序里报错呢? #19

Open
dzcms opened this issue Dec 15, 2018 · 4 comments
Open

你好 为什么在小程序里报错呢? #19

dzcms opened this issue Dec 15, 2018 · 4 comments

Comments

@dzcms
Copy link

dzcms commented Dec 15, 2018

thirdScriptError
sdk uncaught third Error
Cannot read property 'createElement' of undefined
TypeError: Cannot read property 'createElement' of undefined

@dzcms
Copy link
Author

dzcms commented Dec 15, 2018

import 一引入就报错

@capricorncd
Copy link
Owner

小程序里没有document/window浏览器对象,所以无法通过document去创建浏览器的dom元素。

@dzcms
Copy link
Author

dzcms commented Dec 16, 2018

你好,有没有办法做小程序的适配呢?

@capricorncd
Copy link
Owner

另外加载一个url(url 是编辑器网页)。这个编辑器不支持小程序环境。

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