本文共 403 字,大约阅读时间需要 1 分钟。
字符串的concat方法
Concatenates the current string with the string passed as parameter.
将当前字符串与作为参数传递的字符串连接在一起。
Example:
例:
'Flavio'.concat(' ').concat('Copes') //'Flavio Copes'
You can specify a variable number of arguments, and if you do so all those arguments will be concatenated to the original string:
您可以指定数量可变的参数,如果这样做,所有这些参数都将连接到原始字符串:
'Flavio'.concat(' ', 'Copes') //'Flavio Copes'
翻译自:
字符串的concat方法
转载地址:http://xxqgb.baihongyu.com/