feat(hook): add doneEach
This commit is contained in:
parent
558d73c2a8
commit
c6f760275c
6 changed files with 30 additions and 5 deletions
|
|
@ -63,7 +63,7 @@ window.$docsify = {
|
|||
plugins: [
|
||||
function (hook) {
|
||||
hook.init(function() {
|
||||
// 初始化时调用,只调用一次
|
||||
// 初始化时调用,只调用一次,没有参数。
|
||||
})
|
||||
|
||||
hook.beforeEach(function(content) {
|
||||
|
|
@ -79,8 +79,13 @@ window.$docsify = {
|
|||
next(html)
|
||||
})
|
||||
|
||||
hook.doneEach(function() {
|
||||
// 每次路由切换时数据全部加载完成后调用,没有参数。
|
||||
// ...
|
||||
})
|
||||
|
||||
hook.ready(function() {
|
||||
// docsify 初始化完成后调用,只调用一次
|
||||
// 初始化完成后调用,只调用一次,没有参数。
|
||||
})
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue