Last updated 5 years ago
Was this helpful?
语法:
_.toUpper([string=''])
源代码链接:
npm包链接:
描述:
转换整个string字符串的字符为大写,类似.
string
开始版本:4.0.0
参数:
[string=''] (string): 要转换的字符串。
[string=''] (string)
返回值:
(string): 返回大写的字符串。
(string)
例子:
_.toUpper('--foo-bar--'); // => '--FOO-BAR--' _.toUpper('fooBar'); // => 'FOOBAR' _.toUpper('__foo_bar__'); // => '__FOO_BAR__'