笙默考试管理系统-MyExamTest----codemirror(57)
笙默考试管理系统-MyExamTest----codemirror(57)
????
目录
一、 笙默考试管理系统-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;
????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
????????// 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";
}());
????// 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;
????????}
????????for (var i = 0, n = 0; i < end; ++i) {
????????????if (string.charAt(i) == "\t") n += tabSize - (n % tabSize);
????????????else ++n;
????????}
????????return n;
????}
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!