使用v-for 迭代陣列或物件中的元素。 ... <div id="app"> <ul> <li v-for="(item, index) in list"> index: ${ index } ... 例5:元件Component.
確定! 回上一頁