使用ui元素上传多张图片如何获取图片路径存储在imgarr arrary中 [英] use element ui upload Multiple pictures how to get the picture path store in imgarr arrary
本文介绍了使用ui元素上传多张图片如何获取图片路径存储在imgarr arrary中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这样的响应数据,如何存储 res.imgarr
the response data such like that, how to store the res.imgarr
推荐答案
您可以使用 file-list
数据字段,其中包含默认的上载文件.
You can use the file-list
data field, which holds the default uploaded files.
这是文档: http://element.eleme.io/#/zh-CN/component/上传
Js Fiddle示例: https://jsfiddle.net/h634yrf5/
Js Fiddle example: https://jsfiddle.net/h634yrf5/
在所附示例中添加新文件时,请检查控制台日志,您会注意到文件列表.
Check the console log when you add new file in the attached example and you will notice the list of files.
这篇关于使用ui元素上传多张图片如何获取图片路径存储在imgarr arrary中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文