CodeMirror getValue 函数不工作

问题描述 投票:0回答:0

我导出了编辑器组件并在我的代码编辑器页面中使用了它

我使用了

Editor.getValue()
并期望返回一个字符串,但是浏览器控制台显示
"Cannot read properties of undefined (reading "getValue")

node.js reactjs express web codemirror
© www.soinside.com 2019 - 2024. All rights reserved.