摘要:
```javascript class Element{ constructor(type, props, children) { this.type = type this.props = props this.children = children } } function createElement (type, props, children) { return new Element(t 阅读全文
posted @ 2020-05-21 21:50
一只小鲸鱼
阅读(308)
评论(0)
推荐(0)
摘要:
```javascriptfunction Mvvm(options = {}) { this.$options = options let data = this._data = this.$options.data //数据劫持 observe(data) //数据代理 //为了不用写如mvvm._data.a.b这种 //可以直接写mvvm.a.b ... 阅读全文
posted @ 2020-05-21 21:48
一只小鲸鱼
阅读(183)
评论(0)
推荐(0)

浙公网安备 33010602011771号