当前位置:网站首页>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>
边栏推荐
- Currently clicked button and current mouse coordinates in QT judgment interface
- MySQL advanced part 2: MySQL architecture
- [rust notes] 16 input and output (Part 1)
- 阿里巴巴成立企业数智服务公司“瓴羊”,聚焦企业数字化增长
- 2021apmcm post game Summary - edge detection
- Appium自动化测试基础 — Appium测试环境搭建总结
- Doing SQL performance optimization is really eye-catching
- 11-gorm-v2-02-create data
- 1039 Course List for Student
- Leetcode-22: bracket generation
猜你喜欢

2021apmcm post game Summary - edge detection

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

Appium foundation - use the first demo of appium

MySQL advanced part 2: MySQL architecture

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

Doing SQL performance optimization is really eye-catching

Open source storage is so popular, why do we insist on self-development?

QQ电脑版取消转义符输入表情

4. 对象映射 - Mapping.Mapster

liunx启动redis
随机推荐
1.15 - 输入输出系统
leetcode-6110:网格图中递增路径的数目
In depth analysis of for (VaR I = 0; I < 5; i++) {settimeout (() => console.log (I), 1000)}
[rust notes] 14 set (Part 1)
Overview of variable resistors - structure, operation and different applications
2021apmcm post game Summary - edge detection
11-gorm-v2-03-basic query
Leetcode-3: Longest substring without repeated characters
QQ电脑版取消转义符输入表情
Shutter web hardware keyboard monitoring
1041 Be Unique
1040 Longest Symmetric String
MySQL advanced part 2: optimizing SQL steps
Data visualization chart summary (I)
实时时钟 (RTC)
【Rust 笔记】16-输入与输出(下)
MIT-6874-Deep Learning in the Life Sciences Week 7
Doing SQL performance optimization is really eye-catching
Groupbykey() and reducebykey() and combinebykey() in spark
2022年貴州省職業院校技能大賽中職組網絡安全賽項規程