reactjs - 从 react-ace 编辑器中的排水沟中删除所有注释
问题描述
我在我的反应项目中使用 AceEditor,但我不想在装订线中显示错误或警告。我怎样才能做到这一点?我尝试了以下一种方法,但没有奏效。
<AceEditor
readOnly
value={code || ''}
mode="javascript"
name="UNIQUE_ID_OF_DIV"
editorProps={{ $blockScrolling: true }}
theme="github"
showError={false}
width='auto'
height={height}
annotations={null} />
谢谢你。
解决方案
推荐阅读
- r - Rvest Scraping - Time Class 的 HTML 属性标题与网页相比具有不同的值 - 9 小时差异
- mongodb - Mongoose - 搜索数组并返回匹配的结果
- tcp - 客户端收到 [SYN, ACK] 后发送 [RST]
- javascript - js,从文本偏移/文本位置获取元素?
- javascript - 如何根据javascript中的多个分隔符将字符串拆分为多个数组
- powershell - 如何在 Powershell 中将 Get-Date 日期格式化为 2 位数字
- php - Laravel:Pusher 的动态配置
- entity-framework-core - CosmosDb Entity Framework Core 提供程序日志记录
- r - R编程Highchart数字格式
- javascript - 如何在 Angular 8 中使用来自 HTML 输入的 JSON 文件?