标签:todo item fir dos div second script cond col
1. templates
2. v-if,
v-for
<div id=‘app‘> <ol> <li v-for="todo in todos‘> {{ todo.text}} </li> </ol> </div> <script> todos = [ {text: "First todo item"}, {text: "Second todo item"}, {text: "Third todo item"} ] </script>
标签:todo item fir dos div second script cond col
原文地址:https://www.cnblogs.com/hanxiangmin/p/11330838.html