0
点赞
收藏
分享

微信扫一扫

ts 使用数组 拼接成对象展示


<script setup lang="ts">
const a: number[] = [1, 23, 4, 532, 5, 100];
</script>

<template>
<div>
<h1>{{ a.map(v => ({num: v})) }}</h1>
</div>
</template>

ts 使用数组 拼接成对象展示_html

 

举报

相关推荐

0 条评论