变量名 | 类 型 | 静态 | 数组 | 备 注 |
Json | zyJsonValue | | |
Json.
解析 ( #Json数据, , , ,
)调试输出 (“province”, Json.
取文本 (“final[0].province”))
调试输出 (“area”, Json.
取文本 (“final[0].area”))
调试输出 (“username”, Json.
取文本 (“final[0].username”))
调试输出 (“password”, Json.
取文本 (“final[0].password”))
变量名 | 类 型 | 静态 | 数组 | 备 注 |
表达式 | 正则表达式类 | | |
i | 整数型 | | |
表达式.
创建 ("
#引号 (province|area|username|password
) #引号 :
#引号? (\w+
)",
#常量1, 假, 假, 真,
真)
计次循环首 (表达式.
取匹配数量 (), i
)
调试输出 (表达式.
取子匹配文本 (i, 1,
))
调试输出 (表达式.
取子匹配文本 (i, 2,
))
计次循环尾 ()
变量名 | 类 型 | 静态 | 数组 | 备 注 |
json | 存取键值表 | | |
username | 文本型 | | |
password | 文本型 | | |
json.
从JSON载入 ( #json文本, , ,
)username = json.
取文本 (“//final[1].username”)password = json.
取文本 (“//final[1].password”)