whtoc.js
来自「阅读您的文件包然后写出其具体功能(至少要20个字)。尽量不要让站长把时间都花费在」· JavaScript 代码 · 共 31 行
JS
31 行
// WebHelp 5.10.001
// const strings
var gaProj = new Array();
var gsRoot = "";
function setRoot(sRoot)
{
gsRoot = sRoot
}
function aPE(sProjPath, sRootPath)
{
gaProj[gaProj.length] = new tocProjEntry(sProjPath, sRootPath);
}
function tocProjEntry(sProjPath, sRootPath)
{
if(sProjPath.lastIndexOf("/")!=sProjPath.length-1)
sProjPath+="/";
this.sPPath = sProjPath;
this.sRPath = sRootPath;
}
function window_OnLoad()
{
if (parent && parent != this && parent.projReady) {
parent.projReady(gsRoot, gaProj);
}
}
window.onload = window_OnLoad;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?