1.html 590 B

12345678910111213141516171819202122232425262728293031
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <style type="text/css">
  7. [v-cloak] {
  8. display: none;
  9. }
  10. </style>
  11. </head>
  12. <body>
  13. <div id="root">
  14. <input type="text" id="input" v-model="message" />
  15. <p v-cloak>The value of the input is: {{ message }}.</p>
  16. </div>
  17. <script src="https://unpkg.com/vue@2.1.3/dist/vue.js"></script>
  18. <script>
  19. const app = new Vue({
  20. el: '#root',
  21. data: {
  22. message: "Hello world",
  23. }
  24. });
  25. </script>
  26. </body>
  27. </html>