2019-03-26  09:53:22

很多时候都佩服自己写的东西,相当的低劣了(T-T)。

重新整理一下上传图片与视屏,对我来说已经精简了很多了,实际应用中多个文件现在成了一个文件了。

虽然还是相当的低劣,但是收获还是挺多的,对操作数组和dom有了更多的认识。

效果:

Apicloud——关于上传图片、视频(二)

数据结构:

 1 {
 2                 "code": 200,
 3                 "message": "获取成功!",
 4                 "data": [{
 5                         "type": 1,
 6                         "stage": "",
 7                         "list_content": [{
 8                                 "material_id": 1,
 9                                 "type": 1,
10                                 "type_name": "aaa",
11                                 "stage": "basic",
12                                 "material_content": [{
13                                         "name": "身份证正面",
14                                         "material_path": ""
15                                     },
16                                     {
17                                         "name": "身份证正面",
18                                         "material_path": ""
19                                     },
20                                     {
21                                         "name": "身份证正面",
22                                         "material_path": ""
23                                     }
24                                 ]
25                             },
26                             {
27                                 "material_id": 2,
28                                 "type": 1,
29                                 "type_name": "aaa",
30                                 "stage": "basic",
31                                 "material_content": [{
32                                         "name": "身份证反面",
33                                         "material_path": ""
34                                     },
35                                     {
36                                         "name": "身份证反面",
37                                         "material_path": ""
38                                     }
39                                 ]
40                             }
41                         ]
42                     }。。。。。。。。。。。。。。。
View Code

相关文章:

  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-12-12
相关资源
相似解决方案