Skip to content

Commit

Permalink
docs: 优化打印
Browse files Browse the repository at this point in the history
  • Loading branch information
novlan1 committed Sep 26, 2022
1 parent c82f05f commit fd02431
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions script/docs/jsdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ function insertSeparator(index, source) {
const ele = document.createElement('span')
ele.innerHTML = getSeparatorStr(source)
ele.style = 'color: hsl(207, 1%, 60%);font-size: 12px;'
console.log('dom', index, dom)
parent.insertBefore(ele, dom)
}

Expand Down Expand Up @@ -49,9 +48,9 @@ document.addEventListener('DOMContentLoaded', () => {
const name = nav.innerHTML.trim()
navList.push(name)
}
console.log(sourceList)
console.log(navList)
console.log('sourceMap', sourceMap)
console.log('sourceList: ', sourceList)
console.log('navList: ', navList)
console.log('sourceMap: ', sourceMap)

for (let i = navList.length - 1; i >= 1; i--) {
const cur = navList[i]
Expand All @@ -60,7 +59,6 @@ document.addEventListener('DOMContentLoaded', () => {
const nextSource = sourceMap[next]
if (source !== nextSource) {
insertSeparator(i, source)
console.log('aaaa', source)
}
}
insertSeparator(0, sourceMap[navList[0]])
Expand Down

0 comments on commit fd02431

Please sign in to comment.