This website requires JavaScript.
Explore
Help
Register
Sign In
taylor
/
vue3-tutorial
Watch
1
Star
0
Fork
0
You've already forked vue3-tutorial
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
Files
master
vue3-tutorial
/
docs
/
chapter4
/
04_Composition VS Option.md
zxfjd3g
832b961d34
doc
2020-11-12 21:07:26 +08:00
968 B
Raw
Permalink
Blame
History
Unescape
Escape
4. Composition API VS Option API
1) Option API的问题
在传统的Vue OptionsAPI中
,
新增或者修改一个需求
,
就需要分别在data
,
methods
,
computed里修改 ,滚动条反复上下移动
2) 使用Compisition API
我们可以更加优雅的组织我们的代码,函数。让相关功能的代码更加有序的组织在一起
Reference in New Issue
View Git Blame
Copy Permalink