We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
微信小程序
https://github.com/cheese-git/issue-taro-vue2-editor 小程序基础库: 2.14.1 使用框架: Vue 2
npm run dev:weapp
能够成功获取 EditorContext
获取不到 EditorContext
Taro CLI 3.0.21 environment info: System: OS: Windows 10 Binaries: Node: 14.15.1 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.10 - C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\bin\yarn.CMD npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered:
在 onReady 中再获取小程序 dom
- mounted () { + onReady () { const page = Taro.getCurrentInstance().page // @ts-ignore page.createSelectorQuery().select('#editor1').context(res => { console.log(res) // null }).exec() Taro.createSelectorQuery().select('#editor1').context(res => { console.log(res) // null }).exec() }
Sorry, something went wrong.
No branches or pull requests
相关平台
微信小程序
复现仓库
https://github.com/cheese-git/issue-taro-vue2-editor
小程序基础库: 2.14.1
使用框架: Vue 2
复现步骤
npm run dev:weapp
期望结果
能够成功获取 EditorContext
实际结果
获取不到 EditorContext
环境信息
The text was updated successfully, but these errors were encountered: