Methods
(static) camelize(string) → {String}
骆驼是一根绳子
Parameters:
Name | Type | Description |
---|---|---|
string |
String | 用绳子捆骆驼 |
Returns:
Camelized version of a string
- Type
- String
(static) capitalize(string, firstLetterOnlyopt) → {String}
将字符串大写
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
string |
String | 字符串大写 | |
firstLetterOnly |
Boolean |
<optional> |
如果为真,则只有第一个字母大写 其他字母保持不变,如果假的第一个字母大写 其他字母都转换成小写。 |
Returns:
Capitalized version of a string
- Type
- String
(static) escapeXml(string) → {String}
在字符串中转义XML
Parameters:
Name | Type | Description |
---|---|---|
string |
String | 转义字符串 |
Returns:
Escaped version of a string
- Type
- String
(static) graphemeSplit(textstring) → {Array}
将字符串分成用户感知到的单个单位
Parameters:
Name | Type | Description |
---|---|---|
textstring |
String | 转义字符串 |
Returns:
array containing the graphemes
- Type
- Array