如何在Angular 4中分段上传图像

时间:2019-05-06 07:44:46

标签: angular image

我想上传已保存到服务器的多张图片(最大为5张),到目前为止,我正在上传单张图片,但是现在我在optionimage参数中上传了多张图片,我有上传单张图片的代码,即工作正常,但我对多个部分所添加的代码或如何实现感到困惑。

我已经为上传单个图像进行了编码,如下所示,请看一下。

new_df <- df[order(df$Value, decreasing = TRUE), ]
new_df[unlist(Map(head, split(1:nrow(new_df), new_df$ID), 
                  ceiling(table(new_df$ID) * 0.25))), ]

#   ID Value
#14  1    45
#17  2    97
#18  2    89
#2   3    83
#19  3    72
#6   3    63

请高度赞赏您的帮助

0 个答案:

没有答案