我在我的 React 应用程序中使用 ace Editor 并收到上述错误。我想将我在我的 React 应用程序中使用的 Ace Editor IDE 的内容放在通过提交按钮触发的函数调用中。
<AceEditor
ref='aceEditor'
height='100%'
width='100%'
mode={ideLanguage}
theme={ideTheme}
fontSize={ideFontSize}
showGutter={true}
showPrintMargin={false}/>
这是按钮
<Button
type='button'
buttonStyle='btn--primary--normal'
buttonSize='btn--medium'
onClick={SendCode}
>SUBMIT</Button>
这是功能
const SendCode = () => {
console.log(this.refs.aceEditor.editor.getValue());
};
我究竟做错了什么??
肥皂起泡泡
相关分类