+ 运算子
描述
结合两个字串成为一个新字串。第二组字串会接在第一组字串后面。与呼叫 String.concat() 的结果相同。
语法
string3 = string1 + string 2;
string3 += string2;
参数
string
,string2
,string3
:String
物件 (字串)
回传
两个字串结合过后的新字串
范例
See also
- String
- String Addition operator
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.