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

发布时间:2024年01月01日

笙默考试管理系统-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;

????}

文章来源:https://blog.csdn.net/N201871643/article/details/135328315
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。