颠倒字符串中字符的顺序
- Source:
Example
str.reverse('foo bar') // 'rab oof'
str.reverse(123.45) // '54.321'
Parameters:
Name | Type | Description |
---|---|---|
str |
String | 需要颠倒字符的顺序的字符串 |
Returns:
已颠倒字符的顺序的字符串
- Type
- String