当前位置: 首页 > 网络学院 > 客户端脚本教程 > JavaScript > JavaScript toLowerCase() 方法
The toLowerCase() method is used to display a string in lowercase letters.
toLowerCase()方法用于将字母转换为小写
stringObject.toLowerCase() |
In this example "Hello world!" will be displayed in lower case letters:
在本例中,"Hello World!"将被转为小写字母输出:
<script type="text/javascript"> var str="Hello World!" </script> |
toLowerCase()
How to use toLowerCase() to display a string in lower case letters.
如何用toLowerCase()来将字母转为小写