From 618fd920a035a30f5c4f3ea668b1831d0332f392 Mon Sep 17 00:00:00 2001 From: fdm <245211612@qq.com> Date: Tue, 31 Dec 2019 11:02:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9Vue.prototype.=5F=5Fpatch=5F=5F?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E6=B3=A8=E8=A7=A3=E7=9A=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue-src/core/instance/lifecycle.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vue-src/core/instance/lifecycle.js b/vue-src/core/instance/lifecycle.js index d79738a..31b814b 100644 --- a/vue-src/core/instance/lifecycle.js +++ b/vue-src/core/instance/lifecycle.js @@ -62,7 +62,7 @@ export function lifecycleMixin (Vue: Class) { vm._vnode = vnode // Vue.prototype.__patch__ is injected in entry points // based on the rendering backend used. - /*基于后端渲染Vue.prototype.__patch__被用来作为一个入口*/ + /*Vue.prototype.__patch__方法在入口处platforms/web/runtime/index.js注入。该方法是作为渲染过程的后台方法被使用到。渲染过程为:render函数 => vnode虚拟dom => 真实dom*/ if (!prevVnode) { // initial render vm.$el = vm.__patch__(