markdown编辑器editormd获取光标位置,获取行号位置,获取总行号 电脑版发表于:2022/3/14 23:04 //获取光标位置,获取行号位置 let markdownCursorLine = markdownEditor.getCursor().line + 1; //获取总行号 let allCount = markdownEditor.cm.lineCount();