vue3.0入门 === setup,ref,reactive的基本使用
vue3.0 相比vue2来说性能方面提升了
vue3.0更好的兼容了TypeScript语法
增加了许多新特性
1. Composition (组合) API
2. setup
ref 和 reactive
computed 和 watch
新的生命周期函数
provide 与 inject
新组件
Fragment - 文档碎片
Teleport - 瞬移组件的位置
Suspense - 异步加载组件的 loading 界面
其它 API 更新
全局 API 的修改
将原来的全局 API 转.
原创
2021-07-02 19:50:15 ·
626 阅读 ·
1 评论