Vue学习笔记3.8 列表渲染 v-for

基本的v-for使用方式: <!DOCTYPE html> <html> <head> <title>列表渲染</title> <script src="vue.js"></script> </head> <body> <div id="app"> <div v-for="(item, index) of list"> {{item}} ------ {{index}} </d
相关文章
相关标签/搜索