length()
描述
取得字串長度 (以字元為單位)。(注意:沒有包括最後的結尾字符 ‘\0’)
語法
string.length()
參數
string
: String 物件 (字串)
回傳
字串長度 – 以字元為單位
範例
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.