diff --git a/README.md b/README.md index 476758abdd438e9c923bb7b135169bacc1d41906..46538de6b2a04d04625d64e9535df303091f82a6 100644 --- a/README.md +++ b/README.md @@ -511,7 +511,7 @@ watch 使用的四种方式 -## 12.组件 +## 12.自定义组件 ### 1.component 和 extend 两个静态方法 @@ -521,3 +521,9 @@ watch 使用的四种方式 +### 2.创建自定义组件的虚拟 dom + + + + + diff --git a/component.html b/component.html index 5fde650eb78fbaf5d437d9441dd677f40e3ccf99..8e1a1c757ef5e93bc9adbc4f2f24f917ab7d7278 100644 --- a/component.html +++ b/component.html @@ -10,6 +10,9 @@