📜  codemirror 获取值 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:19.805000             🧑  作者: Mango

代码示例3
var textArea = document.getElementById('myScript');
var editor = CodeMirror.fromTextArea(textArea);
editor.getDoc().setValue('var msg = "Hi";');