当前位置:网站首页>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>
边栏推荐
- Simple selection sort of selection sort
- 做 SQL 性能优化真是让人干瞪眼
- LeetCode 0107. Sequence traversal of binary tree II - another method
- 1.15 - 输入输出系统
- Leetcode-31: next spread
- 【Rust 笔记】17-并发(下)
- 1039 Course List for Student
- MySQL advanced part 1: stored procedures and functions
- Open source storage is so popular, why do we insist on self-development?
- Règlement sur la sécurité des réseaux dans les écoles professionnelles secondaires du concours de compétences des écoles professionnelles de la province de Guizhou en 2022
猜你喜欢

Leetcode-6108: decrypt messages

Groupbykey() and reducebykey() and combinebykey() in spark

MIT-6874-Deep Learning in the Life Sciences Week 7

开源存储这么香,为何我们还要坚持自研?

Navicat連接Oracle數據庫報錯ORA-28547或ORA-03135

MySQL advanced part 2: the use of indexes

MySQL advanced part 1: index

LeetCode 0107. Sequence traversal of binary tree II - another method

Leetcode array operation

Traditional databases are gradually "difficult to adapt", and cloud native databases stand out
随机推荐
Leetcode-9: palindromes
2022年貴州省職業院校技能大賽中職組網絡安全賽項規程
LeetCode 0107.二叉树的层序遍历II - 另一种方法
剑指 Offer II 058:日程表
MySQL advanced part 2: storage engine
1041 Be Unique
【Rust 笔记】15-字符串与文本(下)
LeetCode 0107. Sequence traversal of binary tree II - another method
一些工具的记录2022
Leetcode-6110: number of incremental paths in the grid graph
1.15 - 输入输出系统
阿里巴巴成立企业数智服务公司“瓴羊”,聚焦企业数字化增长
927. 三等分 模拟
开源存储这么香,为何我们还要坚持自研?
One question per day 1447 Simplest fraction
MySQL advanced part 1: stored procedures and functions
leetcode-22:括号生成
MySQL advanced part 2: SQL optimization
Daily question 1688 Number of matches in the competition
Doing SQL performance optimization is really eye-catching