vue引用ueditor控制台显示'UE' is not defined的解决方法
将UE.getEditor()更改为window.UE.getEditor()即可原始代码:<script id="content" type="text/plain"></script>const _this = thisconst co
·
将 UE.getEditor() 更改为 window.UE.getEditor() 即可
原始代码:
<script id="content" type="text/plain"></script>
const _this = this
const config = {}
this.editor = UE.getEditor('content',config)
this.editor.addListener('ready', function() {
_this.editor.setContent('默认内容')
})
修改后
<script id="content" type="text/plain"></script>
const _this = this
const config = {}
this.editor = window.UE.getEditor('content',config)
this.editor.addListener('ready', function() {
_this.editor.setContent('默认内容')
})
更多推荐
已为社区贡献3条内容
所有评论(0)