本词条缺少概述图,补充相关内容使词条更完整,还能快速升级,赶紧来编辑吧!
- 外文名
- toLowerCase
- 用 途
- 字符串中的字母被转换为小写字母
- 领 域
- 计算机
- 特 点
- 对非字母字符不会产生影响
String java.lang.String.t谜项主凳应故oLowerCase(承店桨热 )
toLowerCase 方法返回一个字符串,该字符串中的字母被转换为小设去糊写字母。
strVariable墓茅全.toLowerCase( )
"String Literal".toLowerCase( )
下面的示例演示了 of the toLo迎归werCase 方法的效果:
var strVariable = "This is a STRING object"; strVariable = strVariable.toLowerCase( ); 在执行上一条语句后 strVariable 的记享值为:
this is a string o凶炼bject
toUpperCase( )把字符变为大写
如何使用 toLowerCase( ) 来把字符串转换成小写。
<scripttype="text/javascript">
var str="HelloWorld!"
document.write(str.toLowerCase())
</script>