VuePressVuePress
Home
Article
Category
Tag
Timeline
Home
Article
Category
Tag
Timeline

Timeline

4/6/2025: Vue2 和 Vue3 的区别

Category: frontTag: vue

vue2 和 vue3 的对比

4/6/2025: Vue.js 的机制和流程

Category: frontTag: vue

Vue.js 的整个流程可以从 源码架构、运行机制 和 生命周期 三个方面详细解析

1/12/2022: Vue 3 相比 Vue 2 性能提升的详细分析

Category: Category A, Category BTag: tag C, tag D

Vue 3 在多个方面对性能进行了优化,下面我们将详细分析这些改进的具体内容。

1. 虚拟 DOM 重写(性能优化)

在 Vue 2 中,虚拟 DOM 的实现主要是基于 Object.defineProperty 来劫持数据变动,但在对比和更新虚拟 DOM 时,Vue 2 会存在一些性能瓶颈,特别是在较大应用中更新频繁的情况下。

在 Vue 3 中,虚拟 DOM 的算法被重新设计,采用了 更精确的 diff 算法,同时通过 Proxy API 让 Vue 能够更高效地追踪数据变化,避免了 Vue 2 中需要进行繁琐的递归遍历和更新的过程。Vue 3 的虚拟 DOM 更新方式能够 更小颗粒度的 diff 操作,只更新需要变动的部分,而不是全量更新。

1/11/2022: Article 11

Category: Category A, Category BTag: tag C, tag D

Heading 2

Here is the content.

Heading 3

Here is the content.

1/10/2022: Article 10

Category: Category A, Category BTag: tag C, tag D

Heading 2

Here is the content.

Heading 3

Here is the content.

1/9/2022: Article 9

Category: Category A, Category BTag: tag C, tag D

Heading 2

Here is the content.

Heading 3

Here is the content.

1/8/2022: Article 8

Category: Category A, Category BTag: tag C, tag D

Heading 2

Here is the content.

Heading 3

Here is the content.

1/7/2022: Article 7

Category: Category A, Category BTag: tag C, tag D

Heading 2

Here is the content.

Heading 3

Here is the content.

1/6/2022: Article 6

Category: Category A, Category BTag: tag A, tag B

Heading 2

Here is the content.

Heading 3

Here is the content.

1/5/2022: Article 5

Category: Category A, Category BTag: tag A, tag B

Heading 2

Here is the content.

Heading 3

Here is the content.

1/4/2022: Article 4

Category: Category A, Category BTag: tag A, tag B

Heading 2

Here is the content.

Heading 3

Here is the content.

1/3/2022: Article 3

Category: Category A, Category BTag: tag A, tag B

Heading 2

Here is the content.

Heading 3

Here is the content.

1/2/2022: Article 2

Category: Category ATag: tag A, tag B

Heading 2

Here is the content.

Heading 3

Here is the content.

1/1/2022: Article 1

Category: Category ATag: tag A, tag B

Heading 2

Here is the content.

Heading 3

Here is the content.

1/2/1998: Archive Article2

Category: HistoryTag: WWII

Heading 2

Here is the content.

Heading 3

Here is the content.

1/1/1998: Archive Article1

Category: HistoryTag: WWI

Heading 2

Here is the content.

Heading 3

Here is the content.