ES6 - toUpperCase() 方法
此方法返回转换为大写的调用字符串值。
语法
string.toUpperCase()
返回值
返回表示指定对象的字符串。
示例
var str = "Apples are round, and Apples are Juicy."; console.log(str.toUpperCase( ));
输出
APPLES ARE ROUND, AND APPLES ARE JUICY.
此方法返回转换为大写的调用字符串值。
string.toUpperCase()
返回表示指定对象的字符串。
var str = "Apples are round, and Apples are Juicy."; console.log(str.toUpperCase( ));
APPLES ARE ROUND, AND APPLES ARE JUICY.
如果您发现内容有误或提出修改建议,请随时向我们发送 E-mail 邮件:
421660149@qq.com
您的建议已发送到 W3schools。