效果如图


直接看代码
<template>
<view>
<button type="primary" @click="chooseImage">上传图片</button>
<view class="imgBox" v-for="(item,index) in imgArr" :key="index">
<image :src="item" @click
本文介绍了如何在uniApp中实现图片上传和预览功能,通过官方文档链接提供详细的操作步骤和代码示例。
效果如图


直接看代码
<template>
<view>
<button type="primary" @click="chooseImage">上传图片</button>
<view class="imgBox" v-for="(item,index) in imgArr" :key="index">
<image :src="item" @click
342
1909
446

被折叠的 条评论
为什么被折叠?