学习VUE中name不显示!是什么原因
代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/jacascript" src="../vue.js/vue.js"></script>
<title>Document</title>
</head>
<body>
<div id="root"></div>
<h2 v-show="true">{{name}}</h2>
</body>
<script type="text/jacascript">
Vue.config.productionTip = false
new Vue({
el:'root',
data:{
name:'hello'
}
})
</script>
</html>
运行结果