<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
<title>v-html</title>
<style>
li {
width: 100px;
list-style-type: none;
background-color: aquamarine;
margin-top: 5px;
}
</style>
</head>

<body>
<ul id="test">
<!-- v-for= '值 in 集合' -->
<!-- v-for= '(值 , 索引) in 集合' -->
<li v-for='(element,index) in data'> {{element+'的索引值为'+index}}</li>
</ul>
</body>
<script>
let app = new Vue({
el: '#test',
data: {
data: [1, 2, 3, 4, 5, 6, 7]
}
})
</script>

</html>

v-for_html