doc
This commit is contained in:
23
docs/chapter4/04_Composition VS Option.md
Normal file
23
docs/chapter4/04_Composition VS Option.md
Normal file
@@ -0,0 +1,23 @@
|
||||
# 4. Composition API VS Option API
|
||||
|
||||
## 1) Option API的问题
|
||||
|
||||
- 在传统的Vue OptionsAPI中,新增或者修改一个需求,就需要分别在data,methods,computed里修改 ,滚动条反复上下移动
|
||||
|
||||
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 2) 使用Compisition API
|
||||
|
||||
我们可以更加优雅的组织我们的代码,函数。让相关功能的代码更加有序的组织在一起
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
|
||||
|
||||

|
||||
Reference in New Issue
Block a user