当前位置:网站首页>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
- Sqlmap tutorial (1)
- Introduction to LVS [unfinished (semi-finished products)]
- [rust notes] 15 string and text (Part 1)
- Data visualization chart summary (I)
- Overview of variable resistors - structure, operation and different applications
- 1040 Longest Symmetric String
- [BMZCTF-pwn] ectf-2014 seddit
- Leetcode-22: bracket generation
- 剑指 Offer II 058:日程表
猜你喜欢
QQ computer version cancels escape character input expression
QQ电脑版取消转义符输入表情
MySQL怎么运行的系列(八)14张图说明白MySQL事务原子性和undo日志原理
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
Erreur de connexion Navicat à la base de données Oracle Ora - 28547 ou Ora - 03135
MatrixDB v4.5.0 重磅发布,全新推出 MARS2 存储引擎!
Appium基础 — 使用Appium的第一个Demo
MySQL advanced part 2: optimizing SQL steps
Introduction to LVS [unfinished (semi-finished products)]
Matrixdb V4.5.0 was launched with a new mars2 storage engine!
随机推荐
LeetCode 1200. Minimum absolute difference
快速使用Amazon MemoryDB并构建你专属的Redis内存数据库
数据可视化图表总结(二)
The sum of the unique elements of the daily question
Leetcode heap correlation
[rust notes] 17 concurrent (Part 2)
Leetcode stack related
Liunx starts redis
One question per day 1020 Number of enclaves
MySQL advanced part 2: SQL optimization
QQ电脑版取消转义符输入表情
Basic explanation of typescript
QQ computer version cancels escape character input expression
884. Uncommon words in two sentences
Multi screen computer screenshots will cut off multiple screens, not only the current screen
A reason that is easy to be ignored when the printer is offline
Traditional databases are gradually "difficult to adapt", and cloud native databases stand out
LaMDA 不可能觉醒吗?
Network security skills competition in Secondary Vocational Schools -- a tutorial article on middleware penetration testing in Guangxi regional competition
【LeetCode】Day94-重塑矩阵