我想从摩纳哥得到错误。
例如,在操场上(https://microsoft.github.io/monaco-editor/playground.html#creating-the-editor-hello-world),如果我写alert(test)
,我将收到以下消息:ReferenceError: test is not defined
。当我在项目上执行此操作时,它不会显示错误
[当您看到消息ReferenceError: test is not defined
时,这不是直接来自Monaco编辑器,而是Playground页面的实现。当您按run