<!DOCTYPE html>
<html>
<body>
<div id="app">
<h1 v-for="workplan in workplans">{
{
workplan.title }}</h1>
</div>
<script src="https://unpkg.com/vue@next"></script>
<script>
const app = Vue.createApp({
data() {
return {
workplans:
[
{
title: '已完成的工作计划'},
{
title: '未完成的工作计划'}
]
}
}
}).mount('#app')
</script>
</body>
<
v-for与计算属性
最新推荐文章于 2024-01-31 19:12:46 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)