Update write-a-plugin.md (#13)

This commit is contained in:
Luffy 2020-02-05 20:52:47 +08:00 committed by GitHub
parent 388ca93665
commit 05c14b65e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -12,6 +12,10 @@ window.$docsify = {
// 初始化时调用,只调用一次,没有参数。
})
hook.mounted(function() {
// 初始化完成后调用,只调用一次,没有参数。
})
hook.beforeEach(function(content) {
// 每次开始解析 Markdown 内容时调用
// ...
@ -30,12 +34,8 @@ window.$docsify = {
// ...
})
hook.mounted(function() {
// 初始化完成后调用 ,只调用一次,没有参数。
})
hook.ready(function() {
// 初始化并第一次加完成数据后调用,没有参数。
// 初始化并第一次加载完成数据后调用,没有参数。
})
}
]