笙默考试管理系统-MyExamTest----codemirror(57)

笙默考试管理系统-MyExamTest----codemirror(57

    

目录

一、 笙默考试管理系统-MyExamTest----codemirror

二、 笙默考试管理系统-MyExamTest----codemirror

三、 笙默考试管理系统-MyExamTest----codemirror

四、 笙默考试管理系统-MyExamTest----codemirror

五、 笙默考试管理系统-MyExamTest----codemirror

  • 笙默考试管理系统-MyExamTest----codemirror

    else {

            var wrapHandler = function(event) {handler(event || window.event);};

            node.attachEvent("on" + type, wrapHandler);

            if (disconnect) return function() {node.detachEvent("on" + type, wrapHandler);};

        }

    }

    CodeMirror.connect = connect;

  • 笙默考试管理系统-MyExamTest----codemirror

    function Delayed() {this.id = null;}

    Delayed.prototype = {set: function(ms, f) {clearTimeout(this.id); this.id = setTimeout(f, ms);}};

    // Detect drag-and-drop

    var dragAndDrop = function() {

        // IE8 has ondragstart and ondrop properties, but doesn't seem to

  • 笙默考试管理系统-MyExamTest----codemirror

        // actually support ondragstart the way it's supposed to work.

        if (/MSIE [1-8]\b/.test(navigator.userAgent)) return false;

        var div = document.createElement('div');

        return "draggable" in div;

    }();

    var gecko = /gecko\/\d{7}/i.test(navigator.userAgent);

    var ie = /MSIE \d/.test(navigator.userAgent);

    var webkit = /WebKit\//.test(navigator.userAgent);

    var lineSep = "\n";

    // Feature-detect whether newlines in textareas are converted to \r\n

    (function () {

        var te = document.createElement("textarea");

        te.value = "foo\nbar";

        if (te.value.indexOf("\r") > -1) lineSep = "\r\n";

}());

  • 笙默考试管理系统-MyExamTest----codemirror

    // Counts the column offset in a string, taking tabs into account.

    // Used mostly to find indentation.

    function countColumn(string, end, tabSize) {

        if (end == null) {

            end = string.search(/[^\s\u00a0]/);

            if (end == -1) end = string.length;

        }

  • 笙默考试管理系统-MyExamTest----codemirror

        for (var i = 0, n = 0; i < end; ++i) {

            if (string.charAt(i) == "\t") n += tabSize - (n % tabSize);

            else ++n;

        }

        return n;

    }

相关推荐

  1. 考试管理系统-MyExamTest----codemirror57

    2024-01-01 23:58:05       48 阅读
  2. 考试管理系统-MyExamTest----codemirror51

    2024-01-01 23:58:05       51 阅读
  3. 考试管理系统-MyExamTest----codemirror59

    2024-01-01 23:58:05       49 阅读
  4. 考试管理系统-MyExamTest----codemirror(45)

    2024-01-01 23:58:05       45 阅读
  5. 考试管理系统-MyExamTest----codemirror(47)

    2024-01-01 23:58:05       51 阅读
  6. 考试管理系统-MyExamTest----codemirror(48)

    2024-01-01 23:58:05       39 阅读
  7. 考试管理系统-MyExamTest----codemirror(62)

    2024-01-01 23:58:05       49 阅读
  8. 考试管理系统-MyExamTest----codemirror(63)

    2024-01-01 23:58:05       52 阅读
  9. 考试管理系统-MyExamTest----codemirror(68)

    2024-01-01 23:58:05       46 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-01-01 23:58:05       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-01-01 23:58:05       100 阅读
  3. 在Django里面运行非项目文件

    2024-01-01 23:58:05       82 阅读
  4. Python语言-面向对象

    2024-01-01 23:58:05       91 阅读

热门阅读

  1. Vue3的proxy

    2024-01-01 23:58:05       64 阅读
  2. python+pytest接口自动化测试之参数关联

    2024-01-01 23:58:05       64 阅读
  3. Keras加载预训练模型

    2024-01-01 23:58:05       62 阅读
  4. R_handbook_基本函数

    2024-01-01 23:58:05       64 阅读
  5. 【记录】开始学习网络安全

    2024-01-01 23:58:05       62 阅读
  6. MySQL唯一索引失效的注意点

    2024-01-01 23:58:05       52 阅读