整数遍历.html 389 B

1234567891011121314151617181920212223
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>整数遍历</title>
  6. <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
  7. </head>
  8. <body>
  9. <div id="app">
  10. <ul>
  11. <li v-for="n in 10">
  12. {{ n }}
  13. </li>
  14. </ul>
  15. </div>
  16. <!-- JavaScript 代码需要放在尾部(指定的HTML元素之后) -->
  17. <script>
  18. new Vue({
  19. el: '#app',
  20. })
  21. </script>
  22. </body>
  23. </html>