如何从摩纳哥编辑器获取未定义变量之类的错误?

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

我想从摩纳哥得到错误。

例如,在操场上(https://microsoft.github.io/monaco-editor/playground.html#creating-the-editor-hello-world),如果我写alert(test),我将收到以下消息:ReferenceError: test is not defined。当我在项目上执行此操作时,它不会显示错误

monaco-editor
1个回答
0
投票

[当您看到消息ReferenceError: test is not defined时,这不是直接来自Monaco编辑器,而是Playground页面的实现。当您按run

© www.soinside.com 2019 - 2024. All rights reserved.