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.