会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
橙云生
博客园
首页
新随笔
联系
管理
2019年12月2日
学习手写vue,理解原理
摘要: ``` class Compiler{ constructor(el,vm){ // 判断el属性 是不是 一个元素, 如果不是就获取 this.el = this.isElementNode(el)?el:document.querySelector(el); // console.log(this.el); this.vm = vm; // 把当前节点放到内存中 let fragment =
阅读全文
posted @ 2019-12-02 16:01 橙云生
阅读(309)
评论(0)
推荐(0)
编辑
公告