Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit 267d667

Browse files
author
jiangmaniu
committed
update: src/guide/migration/global-api-treeshaking.md
1 parent 75f84bf commit 267d667

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/guide/migration/global-api-treeshaking.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ test('an async feature', async () => {
3333
// 运行你的断言
3434
})
3535
```
36-
`Vue.nextTick()` 是一个全局的 API 直接暴露在单个 Vue 对象上——事实上,实例方法 `$nextTick()` 只是一个方便的包装 `Vue.nextTick()` 为方便起见,回调的 `this` 上下文自动绑定到当前当前实例。
36+
37+
`Vue.nextTick()` 是一个全局的 API 直接暴露在单个 Vue 对象上——事实上,实例方法 `$nextTick()` 只是一个方便的包装 `Vue.nextTick()` 为方便起见,回调的 `this` 上下文自动绑定到当前实例。
3738

3839
模块捆绑程序,如 [webpack](https://webpack.js.org/) 支持 [tree-shaking](网址:https://webpack.js/webpack/js//),这是“死代码消除”的一个花哨术语。不幸的是,由于代码是如何在以前的 Vue 版本中编写的,全局 API `Vue.nextTick()` 不可摇动,将包含在最终捆绑中不管它们实际在哪里使用。
3940

0 commit comments

Comments
 (0)