摘要: 先来看看真实的dom var div = document.createElement('div');var str = ''for(let key in div) { str += key + ' '}console.log(str) align title lang translate dir 阅读全文
posted @ 2020-04-21 11:29 我喝牛奶不舔盖 阅读(229) 评论(0) 推荐(0)
摘要: render函数定义在src/core/instance/render.js下,用来将模板渲染成虚拟dom(VNode) Vue.prototype._render = function (): VNode { const vm: Component = this const { render, _ 阅读全文
posted @ 2020-04-21 11:01 我喝牛奶不舔盖 阅读(658) 评论(0) 推荐(0)
摘要: import org.springframework.context.annotation.Configuration; import javax.servlet.*; import javax.servlet.http.HttpServletRequest; import javax.servle 阅读全文
posted @ 2020-04-20 17:12 我喝牛奶不舔盖 阅读(482) 评论(0) 推荐(0)
摘要: vue中是通过$mount函数来挂载vm的,$mount和平台、构建方式都有关系 以下是对compiler版本的分析 首先函数定义在src/platform/web/entry-runtime-with-compiler.js中 const mount = Vue.prototype.$mount 阅读全文
posted @ 2020-04-20 16:49 我喝牛奶不舔盖 阅读(495) 评论(0) 推荐(0)
摘要: vue类是在src/core/instance/index.js中定义的 function Vue (options) { if (process.env.NODE_ENV !== 'production' && !(this instanceof Vue) ) { warn('Vue is a c 阅读全文
posted @ 2020-04-20 15:44 我喝牛奶不舔盖 阅读(193) 评论(0) 推荐(0)
I hear and I forget. I see and I remember. I do and I understand