
完整版:同时包含编译器和运行时的版本。
编译器:用来将模板字符串编译成为 JavaScript 渲染函数的代码。
运行时:用来创建 Vue 实例、渲染并处理虚拟 DOM 等的代码。基本上就是除去编译器的其它一切。
方方理解版:

// 完整版
new Vue({
template: '<div>{{ n }}</div>'
})
// 运行版
new Vue({
render (h) {
return h('div', this.n)
}
})------------------------------------------------------------------------------------------------
如何使用codesandbox.io写vue:(三图流)(无需登录)


