入门
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>vue实例化</title>
</head>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<body> <div id="root"></div> <script type="text/javascript"> new Vue({
el:"#root",
template:'<h1>hello {{msg}}</h1> ',
data:{
msg: "world"
}
})
</script> </body>
</html>