1 Star 0 Fork 34

durandal/outline.js

forked from Yaohaixiao/outline.js 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
_getChapterParentIdByDiffer.js 297 Bytes
一键复制 编辑 原始数据 按行查看 历史
const _getChapterParentIdByDiffer = (chapters, differ, index) => {
let previous = chapters[index - 1]
let pid
let i
for (i = 0; i < differ; i += 1) {
pid = previous.pid
previous = chapters[pid]
}
pid = previous.pid
return pid
}
export default _getChapterParentIdByDiffer
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/ddal/outline.js.git
git@gitee.com:ddal/outline.js.git
ddal
outline.js
outline.js
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385