文檔
聯絡我們
-
學生
-
老師
-
編程
-
-
-
-
- 將文字轉換為 DateTimeOffset 格式
- 以不同單位創建 DateTimeOffset
- 以 Unix 時間創建 DateTimeOffset
- 使用當前時間創建DateTimeOffset
- 將 DateTimeOffset 與新的協調世界時偏移量合併
- 設定協調世界時偏移量
- 將 DateTimeOffset 變更成字串格式
- 轉換DateTimeOffset為字串
- 將間距加到dateTimeOffset
- 計算兩個DateTimeOffsets之間的間距
- 檢查兩個DateTimeOffsets是否相同
- 以毫秒顯示DateTimeOffset
- 以其他格式顯示時間
- 檢查DateTimeOffset是否在正確的數據類型
-
Print
當輸入變更時發生事件
當InputControl變更時
{"blocks":"inputControl "}
這積木是用作當用家輸入後,並按下鍵盤上的enter鍵時,它會進行一些動作。
參數:螢幕項目(輸入控制)
輸出: N/A
示例代碼:
當用家在文字框內輸入並按下enter鍵,程式會顯示你所輸入的文字。
{"blocks":"inputControl createOutput inputControl "}
{"blocks":"mainLayout mainScreen inputControl createOutput youWrote mainLayout 0 mainScreen 0 Main mainLayout inputControl 0 TextInputType.Text createOutput 0 youWrote 0 You wrote: mainLayout inputControl mainLayout youWrote mainLayout createOutput inputControl createOutput inputControl "}
當沒有輸入任何文字時的輸出結果:
當輸入了文字並按下enter鍵時的輸出結果: