当前位置:网站首页>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>
边栏推荐
- Open source storage is so popular, why do we insist on self-development?
- 【Rust 笔记】14-集合(下)
- Leetcode-1200: minimum absolute difference
- Leetcode-6108: decrypt messages
- Sqlmap tutorial (II) practical skills I
- leetcode-6108:解密消息
- wordpress切换页面,域名变回了IP地址
- leetcode-556:下一个更大元素 III
- js快速将json数据转换为url参数
- A reason that is easy to be ignored when the printer is offline
猜你喜欢

Appium foundation - use the first demo of appium

MySQL advanced part 2: MySQL architecture

Redis publish subscribe command line implementation

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

LeetCode 0108.将有序数组转换为二叉搜索树 - 数组中值为根,中值左右分别为左右子树

LeetCode 0107.二叉树的层序遍历II - 另一种方法

Leetcode-6108: decrypt messages

快速使用Amazon MemoryDB并构建你专属的Redis内存数据库

Sqlmap tutorial (1)

Arduino 控制的 RGB LED 无限镜
随机推荐
1040 Longest Symmetric String
MIT-6874-Deep Learning in the Life Sciences Week 7
Erreur de connexion Navicat à la base de données Oracle Ora - 28547 ou Ora - 03135
One question per day 1447 Simplest fraction
Leetcode recursion
可变电阻器概述——结构、工作和不同应用
Sword finger offer II 058: schedule
Overview of variable resistors - structure, operation and different applications
leetcode-22:括号生成
Daily question 1189 Maximum number of "balloons"
Regulations for network security events of vocational group in 2022 Guizhou Vocational College skill competition
SPI details
[leetcode] day94 reshape matrix
【Rust 笔记】13-迭代器(中)
4. 对象映射 - Mapping.Mapster
Records of some tools 2022
Real time clock (RTC)
Operator priority, one catch, no doubt
Daily question 1342 Number of operations to change the number to 0
Sqlmap tutorial (II) practical skills I