瀏覽代碼

Изменить 'ace/index.html'

master
KaiSD 4 年之前
父節點
當前提交
7fd7924924
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      ace/index.html

+ 4
- 2
ace/index.html 查看文件

@@ -40,8 +40,10 @@
autoScrollEditorIntoView: true
})
editor.setValue(localStorage.getItem("acetest"));
editor.clearSelection();
if (localStorage.getItem("acetest") === null) {
editor.setValue(localStorage.getItem("acetest"));
editor.clearSelection();
}
editor.getSession().on('change', function () {
localStorage.setItem("acetest", editor.getSession().getValue());


Loading…
取消
儲存