JavaScript toUpperCase() 方法

定义和用法
toUpperCase() 方法用于把字符串转换为大写。
语法
string.toUpperCase()
浏览器支持
所有主要浏览器都支持 toUpperCase() 方法
实例
实例
把字符串转换为大写:
<script>
var str="Hello world!";
document.write(str.toUpperCase());
</script>
var str="Hello world!";
document.write(str.toUpperCase());
</script>
