trim()

描述

得到一個去除頭尾空白的字串。

trim() 會修改原字串而不是回傳轉換後的新字串。

語法


string.trim()

參數

string : String 物件 (字串)

回傳

無回傳值

範例

StringLengthTrim

See also

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.