From e0121c1524552784f36993345e7ddfaec45fdc8d Mon Sep 17 00:00:00 2001 From: roger Date: Fri, 13 Jan 2023 09:49:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90render=E7=9A=84=E5=AD=A6?= =?UTF-8?q?=E4=B9=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 19_单文件组件/vue_demo/src/main.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/19_单文件组件/vue_demo/src/main.js b/19_单文件组件/vue_demo/src/main.js index 1c4bdae..cb00822 100644 --- a/19_单文件组件/vue_demo/src/main.js +++ b/19_单文件组件/vue_demo/src/main.js @@ -12,6 +12,15 @@ new Vue({ // el的写法 // new Vue({ -// el: '#App', +// el: '#app', // render: h => h(App), +// }) + +// rander的完整写法 +// new Vue({ +// el: '#app', +// render(createElement) { +// console.log("rander", typeof createElement) +// return createElement('h1', 'Hello') +// } // }) \ No newline at end of file