摘要: ``` 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) 编辑