切换布局
显示结果
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Vue 测试实例 - 迹忆客(jiyik.com)</title> <script src="https://unpkg.com/vue@next"></script> </head> <body> <div id="app"> <ol> <li v-for="site in sites"> {{ site.text }} </li> </ol> </div> <script> const app = { data() { return { sites: [ { text: 'Google' }, { text: 'Jiyik' }, { text: 'Taobao' } ] } } } Vue.createApp(app).mount('#app') </script> </body> </html>