打开 微信扫一扫登录
toUpperCase()方法返回转换为大写的调用字符串值。
语法:
string.toUpperCase()
返回值:
返回表示指定对象的字符串。
例:
var str = "Apples are round, and Apples are Juicy."; console.log(str.toUpperCase( ));
输出:
APPLES ARE ROUND, AND APPLES ARE JUICY.
推荐手册