Skip to content

Commit 05c14b6

Browse files
authored
Update write-a-plugin.md (#13)
1 parent 388ca93 commit 05c14b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

write-a-plugin.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ window.$docsify = {
1212
// 初始化时调用,只调用一次,没有参数。
1313
})
1414

15+
hook.mounted(function() {
16+
// 初始化完成后调用,只调用一次,没有参数。
17+
})
18+
1519
hook.beforeEach(function(content) {
1620
// 每次开始解析 Markdown 内容时调用
1721
// ...
@@ -30,12 +34,8 @@ window.$docsify = {
3034
// ...
3135
})
3236

33-
hook.mounted(function() {
34-
// 初始化完成后调用 ,只调用一次,没有参数。
35-
})
36-
3737
hook.ready(function() {
38-
// 初始化并第一次加完成数据后调用,没有参数。
38+
// 初始化并第一次加载完成数据后调用,没有参数。
3939
})
4040
}
4141
]

0 commit comments

Comments
 (0)