1234567891011121314151617181920212223 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>整数遍历</title>
- <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
- </head>
- <body>
- <div id="app">
- <ul>
- <li v-for="n in 10">
- {{ n }}
- </li>
- </ul>
- </div>
- <!-- JavaScript 代码需要放在尾部(指定的HTML元素之后) -->
- <script>
- new Vue({
- el: '#app',
- })
- </script>
- </body>
- </html>
|