文檔
聯絡我們
-
學生
-
老師
-
編程
-
-
-
-
- 將文字轉換為 DateTimeOffset 格式
- 以不同單位創建 DateTimeOffset
- 以 Unix 時間創建 DateTimeOffset
- 使用當前時間創建DateTimeOffset
- 將 DateTimeOffset 與新的協調世界時偏移量合併
- 設定協調世界時偏移量
- 將 DateTimeOffset 變更成字串格式
- 轉換DateTimeOffset為字串
- 將間距加到dateTimeOffset
- 計算兩個DateTimeOffsets之間的間距
- 檢查兩個DateTimeOffsets是否相同
- 以毫秒顯示DateTimeOffset
- 以其他格式顯示時間
- 檢查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”」,輸出結果: