JavaScript toUpperCase() 方法

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