使用手册
-
学生
-
老师
-
编程
-
-
-
- 以 Unix 时间创建 DateTimeOffset
- 以不同单位创建 DateTimeOffset
- 以其他格式显示时间
- 以毫秒显示DateTimeOffset
- 使用当前时间创建DateTimeOffset
- 将 DateTimeOffset 与新的协调世界时偏移量合并
- 将 DateTimeOffset 变更成字串格式
- 将文字转换为 DateTimeOffset 格式
- 将间距加到dateTimeOffset
- 检查DateTimeOffset是否在正确的数据类型
- 检查两个DateTimeOffsets是否相同
- 计算两个DateTimeOffsets之间的间距
- 设定协调世界时偏移量
- 转换DateTimeOffset为字串
-
Print
寻找相关的键
JsonValue有键 “”
{"blocks":"jsonValue "}
这积木是用作检查JsonValue是否包含相关的键。
参数:
- Json Value (物件操作)
- 字串
输出:布林值(True/False)
示例代码:
使用if-else条件式来检查JsonValue是否包含键。
{"blocks":"TRUE jsonValue name check The Json Value contains that key. check The value does not contain that key. "}
{"blocks":"mainLayout mainScreen jsonValue check mainLayout 0 mainScreen 0 Main mainLayout jsonValue 0 {\"name\":\"Hello World\", \"Number\":255} check 0 TRUE jsonValue name check The Json Value contains that key. check The value does not contain that key. mainLayout jsonValue mainLayout check "}
当设定「jsonValue有键“name”」,输出结果:
当设定「jsonValue有键“num”」,输出结果: