MyOAExx/Scripts/js/WebExplorerMain.js
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//和界面交互的主文件
//初始化树
var nd = new TreeNode(); //创建树对象
nd.container = $("tree"); //找到容器
nd.text = "在线文档管理";
nd.Show();
currentNode = nd;
currentNode.Refersh();
//加载对话框
var dialog = new Dialog();
dialog.ImgZIndex = 110;
dialog.DialogZIndex = 111;
//下载操作
clickFile = function (fName) {
window.onbeforeunload = function () { }
window.location = defaultURL + "?action=DOWNLOAD&value1=" + encodeURIComponent(currentNode.path + fName);
window.onbeforeunload = function () {
return "无法保存当前状态,请退出!"
};
}
//在线编辑操作
var fileEditor = new Dialog();
fileEditor.Content = "<div id='editorDiv'><input id='switchEditor' type='button' value='切换编辑器'/><br><textarea id='FileContentTextArea' name='FileContentTextArea' cols='80' rows='30' style='width:600px;height:400px'></textarea></div>";
fileEditor.Width = 626;
var oFCKeditor; //富文本编辑器对象
var oEditor; //定义富文本比机器示例
var isRichEditor = false; //当前编辑器状态
var currentContent = ""; //当前内容
var textareaEditor = null; //文本编辑器
var switchButton = null; //切换按钮
var list = null; //选中的文件
var cutCopyOperate = null; //当前操作
var cutCopyFiles = null; //操作的文件
var currentEditFile = null;//要编辑的文件
//在切换回普通文本框时发生
function FCKeditor_OnComplete(editorInstance) {
oEditor = editorInstance;
if (currentContent != null) {
oEditor.SetData(currentContent);
}
}
function switchEditor() {
getEditorContent(); //先获取要编辑的内容
if (isRichEditor) {
isRichEditor = false;
//创建新文件
newFile();
}
else {
isRichEditor = true;
//创建编辑器
createEditor();
}
后面还有 505 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。