简介JavaScript中toUpperCase()方法的使用
该方法返回调用字符串值转换为大写。
语法
string.toUpperCase()
下面是参数的详细信息:
- NA
返回值:
- 返回表示指定对象的字符串
例子:
<html> <head> <title>JavaScriptStringtoUpperCase()Method</title> </head> <body> <scripttype="text/javascript"> varstr="Applesareround,andApplesareJuicy."; document.write(str.toUpperCase()); </script> </body> </html>
这将产生以下结果:
APPLESAREROUND,ANDAPPLESAREJUICY.
热门推荐
10 新年祝福语鼠年简短创意
11 喜得孙子的祝福语简短
12 姓陈简短生日祝福语
13 生日祝福语简短致表哥
14 妹妹生日祝福语简短好看
15 简单生日祝福语简短大全
16 孩子过生日简短祝福语
17 中午祝福语简短句子
18 新年简短祝福语大全集