小程序for循环中怎样能拿到一组数据中两个不同的数组? 或者怎样将两个数组合并在一起?恭请大佬赐教

小程序 文章 2021-02-08 10:01 455 0 全屏看文

AI助手支持GPT4.0

小程序for循环中怎样能拿到一组数据中两个不同的数组? 或者怎样将两个数组合并在一起?恭请大佬赐教How can I get two different arrays in a set of data in a small program for loop? Or how to merge two arrays together? Please enlighten me

小程序for循环中怎样能拿到一组数据中两个不同的数组? 或者怎样将两个数组合并在一起?恭请大佬赐教

这是第一个我问题的那个图!然后数组就是左边框起来那俩!

下面这个我尝试把两个合并!替换反正就是想吧file'File中的内容放到filename里面???

教教小白!!!! 然后这样做就是想能够完成上传、下载文件,

This is the first picture I asked! Then the array is the left border up those two! Here I try to merge the two! Replace anyway is to put the contents of file'file into the file name??? Teach Xiaobai!! and then do this is to be able to upload and download files,

回答:

跨商通:

array.forEach()了解一下。

刘栋:

因为两个index是一样的,你直接调用就可以了,xxx[index]

brave:

-EOF-

AI助手支持GPT4.0