笙默考试管理系统-MyExamTest----codemirror(37)
最佳答案 问答题库388位专家为你答疑解惑
笙默考试管理系统-MyExamTest----codemirror(36)
目录
一、 笙默考试管理系统-MyExamTest
二、 笙默考试管理系统-MyExamTest
三、 笙默考试管理系统-MyExamTest
四、 笙默考试管理系统-MyExamTest
五、 笙默考试管理系统-MyExamTest
- 笙默考试管理系统-MyExamTest
collapse: function(lines) {
lines.splice.apply(lines, [lines.length, 0].concat(this.lines));
},
insertHeight: function(at, lines, height) {
this.height += height;
this.lines.splice.apply(this.lines, [at, 0].concat(lines));
for (var i = 0, e = lines.length; i < e; ++i) lines[i].parent = this;
},
iterN: function(at, n, op) {
for (var e = at + n; at < e; ++at)
if (op(this.lines[at])) return true;
}
};
- 笙默考试管理系统-MyExamTest
function BranchChunk(children) {
this.children = children;
var size = 0, height = 0;
for (var i = 0, e = children.length; i < e; ++i) {
var ch = children[i];
size += ch.chunkSize(); height += ch.height;
ch.parent = this;
}
- 笙默考试管理系统-MyExamTest
this.size = size;
this.height = height;
this.parent = null;
}
BranchChunk.prototype = {
chunkSize: function() { return this.size; },
remove: function(at, n, callbacks) {
this.size -= n;
for (var i = 0; i < this.children.length; ++i) {
var child = this.children[i], sz = child.chunkSize();
if (at < sz) {
- 笙默考试管理系统-MyExamTest
var rm = Math.min(n, sz - at), oldHeight = child.height;
child.remove(at, rm, callbacks);
this.height -= oldHeight - child.height;
if (sz == rm) { this.children.splice(i--, 1); child.parent = null; }
if ((n -= rm) == 0) break;
at = 0;
} else at -= sz;
}
if (this.size - n < 25) {
var lines = [];
this.collapse(lines);
this.children = [new LeafChunk(lines)];
}
},
- 笙默考试管理系统-MyExamTest
collapse: function(lines) {
for (var i = 0, e = this.children.length; i < e; ++i) this.children[i].collapse(lines);
},
insert: function(at, lines) {
var height = 0;
for (var i = 0, e = lines.length; i < e; ++i) height += lines[i].height;
this.insertHeight(at, lines, height);
},
99%的人还看了
相似问题
- 基于ASP.NET MVC技术的图书管理系统的设计与实现
- MySQL数据库:开源且强大的关系型数据库管理系统
- 基于springboot实现班级综合测评管理系统项目【项目源码+论文说明】
- 基于Springboot的美容院管理系统(有报告)。Javaee项目,springboot项目。
- ssm+vue的药店药品信息管理系统(有报告)。Javaee项目,ssm vue前后端分离项目。
- 短视频账号矩阵系统saas管理私信回复管理系统
- 基于springboot实现应急救援物资管理系统项目【项目源码】计算机毕业设计
- (数据库管理系统)DBMS与(数据库系统)DBS的区别
- 【开源】基于JAVA的学生日常行为评分管理系统
- 印刷企业实施MES管理系统需要哪些硬件设施
猜你感兴趣
版权申明
本文"笙默考试管理系统-MyExamTest----codemirror(37)":http://eshow365.cn/6-20071-0.html 内容来自互联网,请自行判断内容的正确性。如有侵权请联系我们,立即删除!
- 上一篇: 简单秒表设计仿真verilog跑表,源码/视频
- 下一篇: ES6 Proxy和Reflect