当前位置:网站首页>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>
边栏推荐
- 927. 三等分 模拟
- Collection: programming related websites and books
- 阿里新成员「瓴羊」正式亮相,由阿里副总裁朋新宇带队,集结多个核心部门技术团队
- Traditional databases are gradually "difficult to adapt", and cloud native databases stand out
- 剑指 Offer II 058:日程表
- MySQL advanced part 2: MySQL architecture
- 884. Uncommon words in two sentences
- 1040 Longest Symmetric String
- Daily question 1342 Number of operations to change the number to 0
- WordPress switches the page, and the domain name changes back to the IP address
猜你喜欢
Introduction to LVS [unfinished (semi-finished products)]
【LeetCode】Easy | 20. Valid parentheses
传统数据库逐渐“难适应”,云原生数据库脱颖而出
leetcode-6111:螺旋矩阵 IV
1.14 - 流水线
Erreur de connexion Navicat à la base de données Oracle Ora - 28547 ou Ora - 03135
MIT-6874-Deep Learning in the Life Sciences Week 7
MySQL advanced part 1: index
SPI details
SQL三种连接:内连接、外连接、交叉连接
随机推荐
1039 Course List for Student
1.15 - 输入输出系统
2021apmcm post game Summary - edge detection
11-gorm-v2-03-basic query
一些工具的记录2022
【Rust 笔记】15-字符串与文本(下)
Overview of variable resistors - structure, operation and different applications
The difference between CPU core and logical processor
One question per day 1447 Simplest fraction
Records of some tools 2022
剑指 Offer II 058:日程表
【LeetCode】Day94-重塑矩阵
Leetcode-6111: spiral matrix IV
Open source storage is so popular, why do we insist on self-development?
Introduction to LVS [unfinished (semi-finished products)]
Operator priority, one catch, no doubt
leetcode-31:下一个排列
LaMDA 不可能觉醒吗?
New title of module a of "PanYun Cup" secondary vocational network security skills competition
Leetcode-6109: number of people who know secrets