3.html 448 B

123456789101112131415161718192021
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Title</title>
  6. <link rel="stylesheet" href="3.css" />
  7. </head>
  8. <body>
  9. <div id="root">
  10. <ul>
  11. <li v-for="name in names" v-text="name"></li>
  12. </ul>
  13. <input id="input" type="text" />
  14. <button id="button">Add name</button>
  15. </div>
  16. <script src="../lib/vue-2.1.3.js"></script>
  17. <script src="3.js"></script>
  18. </body>
  19. </html>