|
|
发表于 2026-3-9 11:12:49
|
显示全部楼层
上海市上海市
| 变量名 | 类 型 | 静态 | 数组 | 备 注 | | json | 类_json | | | | itemJson | 类_json | | | | title | 文本型 | | 0 | | pic | 文本型 | | 0 | | total | 整数型 | | | | counted | 整数型 | | |
title = { “第一张”, “第二张”, “第三证张”, “第四张” }pic = { “第一张图片”, “第二张图片”, “第三证张图片”, “第四张图片” }total = 取数组成员数 (title ) 计次循环首 (total, counted ) itemJson. 清除 () itemJson. 置属性 (“title”, title [counted ]) itemJson. 置属性 (“pic”, pic [counted ]) json. 加成员 (itemJson. 取数据文本 (), “pictures”, 真) 计次循环尾 ()输出调试文本 (json. 取数据文本 ())
[11:12:00] * {"pictures":[{"title":"第一张","pic":"第一张图片"},{"title":"第二张","pic":"第二张图片"},{"title":"第三证张","pic":"第三证张图片"},{"title":"第四张","pic":"第四张图片"}]}
|
|