vue3 0的六大亮點

2022-08-14 06:27:12 字數 314 閱讀 3153

1. performance: 效能比vue2.x塊1.2~2倍;

2. tree shaking support: 按需編譯,體積比vue2.x更小;

3. composition api: 組合api(類似react hooks);

4. better typescript support: 更好的 ts 支援;

5. custom render api: 暴露了自定義渲染的api ;

6. fragment, teleport(protal): 更先進的元件 ;

可以結合之前寫的部落格進行對比:vue3.0 + vite

vue3 0學習第一天 vue3 0的亮點

performance 效能比vue2.x快1.2 2倍 tree shaking support 按需編譯,體積比vue20x更小 compostion api 組合api better typescript support 更好的ts支援 custom renderer api 暴露了自定義渲染...

(六)Vue3 0預學習

proxy基本使用 vue3用proxy實現響應式 總結vue3尚未發布,還在開發中 面試會考察候選人對新技術的關注程度 vue太熱門 新版本發布之後,再做補充 vue3從正式發布到推廣開發,還需要一段時間 vue2.x應用範圍非常廣,有大量專案需要維護 公升級 proxy存在瀏覽器相容性問題,且不...

Vue3 0系列(Vue3 0是如何變快的 )

來說一說為什麼performance 效能比vue 2.x快1.2 2倍 這裡先提供兩個 2.1 diff演算法優化 例子 我是段落 也就是說,vue3在渲染的時候,給會改變的元素新增了靜態標記 import from vue export function render ctx,cache,pro...