目录
前言
从此篇博客开始,将开启vue的学习,查缺补漏。
只要学计算机语言,那么hello xxx那一定是入门第一行代码了,本文就来解析hello vue,Vue的入门代码
hello vue
代码
直接下载的vue.js文件,用script引入
vue2官网
<div id="app"></div>
<script>
const myVue = new Vue({
template:'<h1>hello vue!<h1>'
})
myVue.$mount('#app')
</script>