JavaScript toLowerCase() 方法

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