将字符串的第一个字母转换成小写。
- Source:
Example
str.decapitalize('StrJs') // 'strJs'
Parameters:
| Name | Type | Description |
|---|---|---|
str |
String | 需要转换的字符串 |
Returns:
已转换的字符串
- Type
- String
str.decapitalize('StrJs') // 'strJs'
| Name | Type | Description |
|---|---|---|
str |
String | 需要转换的字符串 |