{{title1}}
Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/akinoccc/mvvm
mvvm原理实践
https://github.com/akinoccc/mvvm
Last synced: about 2 months ago
JSON representation
mvvm原理实践
- Host: GitHub
- URL: https://github.com/akinoccc/mvvm
- Owner: akinoccc
- Created: 2021-10-05T16:30:04.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-30T16:27:04.000Z (over 2 years ago)
- Last Synced: 2024-10-12T17:41:46.171Z (3 months ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### 演示地址
[https://vkm0303.github.io/mvvm/demo.html](https://vkm0303.github.io/mvvm/demo.html)
### Finished
- [x] 双向数据绑定
- [x] 使用 mvvm 实例里的 methods 中的方法进行 click 事件绑定
- [x] 模拟 v-show 指令### Todo
- [ ] 模拟 compute
- [ ] 模拟钩子函数### 存留问题
当一个变量同时绑定了两个节点的时候,更新数据是,只有一个节点的值会更新
```html
{{title1}}
``````html
{{title4}}
{{isShow}}
{{buttonText}}
```