<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script src="vue.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="app-0">
<span>----------遍历数组-------------</span>
<ul id="app-1">
<li v-for="item in items">
{
{ item.message }} --
<span v-for="i in item.message.length">
{
{ item.message[i-1] }}
</span>
</li>
</ul>
<span>-----------数组索引------------</span>
Vue 循环显示数组(Key : Value)的Value
于 2022-04-02 14:34:56 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)