{{msg}}不顯示 幫我看一下怎么回事
<body>
????<div?id="app">
????????<div?class="bg">
????????????hello?world!!?</br>
????????????{{msg}}
????????</div>
????</div>
????<script>
????????new?vue({
????????????el:?'#app',
????????????data:?{
????????????????msg:?"勇士西部總冠軍"
????????????}
????????})
????</script>
</body>
2019-05-22
vue.js引入進來了嗎?而且new Vue? ?是大寫的Vue
2019-05-29
<!DOCTYPE?html> <html?lang="en"> <head> ????<meta?charset="UTF-8"> ????<title>Title</title> </head> <body> <div?id="app"> ????<div?class="bg"> ????????hello?world!!?</br> ????????{{msg}} ????</div> </div> <script?src="https://cdn.jsdelivr.net/npm/vue"></script> <script> ????new?Vue({ ????????el:?'#app', ????????data:?{ ????????????msg:?"勇士西部總冠軍" ?} ????}) </script> </body> </html>2019-05-29
<!DOCTYPE?html> <html?lang="en"> <head> ????<meta?charset="UTF-8"> ????<title>Title</title> </head> <body> <div?id="app"> ????<div?class="bg"> ????????hello?world!!?</br> ????????{{msg}} ????</div> </div> <script?src="https://cdn.jsdelivr.net/npm/vue"></script> <script> ????new?Vue({ ????????el:?'#app', ????????data:?{ ????????????msg:?"勇士西部總冠軍" ?} ????}) </script> </body> </html>2019-05-22
答案已找到
<script src="https://cdn.jsdelivr.net/npm/vue"></script>