javascript - The page always displays {{ message }}
巴扎黑
巴扎黑 2017-07-05 11:01:44
0
3
875

Follow the tutorial on the official website, introduce <script src="https://unpkg.com/vue/dist/vu... and then directly copy the code from the official website to the local computer, as shown below

Why does {{message}} always appear on the web page?

Attached code:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>test</title>
    <script type="text/javascript" src="https://unpkg.com/vue/dist/vue.js"></script>
</head>
<body>
<p id="app">
  {{ message }}
</p>
<script type="text/javascript">
    var app = new Vue({
        el: 'app',
        data: {
          message: 'Hello Vue!'
        }
    })
</script>
</body>
</html>
巴扎黑
巴扎黑

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!