当前位置:网站首页>Presentation of attribute value of an item
Presentation of attribute value of an item
2022-07-05 06:17:00 【hamimelon2020】
<template>
<div>
<ul id="v-for-object" class="demo">
<li v-for="value in myObject" :key="value.id">
{
{
value }}
</li>
</ul>
</div>
</template>
<script>
export default {
name: 'item',
data() {
return {
myObject: {
title: 'How to do lists in Vue',
author: 'Jane Doe',
publishedAt: '2016-04-10'
}
}
}
}
</script>
No, ul Only li There are three points in the list symbol .
<template>
<div>
<li v-for="value in myObject" :key="value.id">
{
{
value }}
</li>
</div>
</template>
<script>
export default {
name: 'item',
data() {
return {
myObject: {
title: 'How to do lists in Vue',
author: 'Jane Doe',
publishedAt: '2016-04-10'
}
}
}
}
</script>
边栏推荐
猜你喜欢
阿里新成员「瓴羊」正式亮相,由阿里副总裁朋新宇带队,集结多个核心部门技术团队
MySQL advanced part 1: index
MySQL advanced part 1: stored procedures and functions
1.15 - 输入输出系统
SQL三种连接:内连接、外连接、交叉连接
SPI 详解
【LeetCode】Easy | 20. Valid parentheses
Error ora-28547 or ora-03135 when Navicat connects to Oracle Database
Network security skills competition in Secondary Vocational Schools -- a tutorial article on middleware penetration testing in Guangxi regional competition
实时时钟 (RTC)
随机推荐
1.13 - RISC/CISC
leetcode-556:下一个更大元素 III
Usage scenarios of golang context
C Primer Plus Chapter 15 (bit operation)
leetcode-22:括号生成
可变电阻器概述——结构、工作和不同应用
How to understand the definition of sequence limit?
Liunx starts redis
LeetCode 0108. Convert an ordered array into a binary search tree - the median of the array is the root, and the left and right of the median are the left and right subtrees respectively
11-gorm-v2-03-basic query
【Rust 笔记】16-输入与输出(下)
SPI 详解
开源存储这么香,为何我们还要坚持自研?
Simple selection sort of selection sort
Is it impossible for lamda to wake up?
Network security skills competition in Secondary Vocational Schools -- a tutorial article on middleware penetration testing in Guangxi regional competition
Daily question 1688 Number of matches in the competition
做 SQL 性能优化真是让人干瞪眼
什么是套接字?Socket基本介绍
1.14 - assembly line