收藏
0有用+1
0

toLowerCase

计算机术语
本词条缺少概述图,补充相关内容使词条更完整,还能快速升级,赶紧来编辑吧!
toLowerCase,计算机术语,用途是字符串中的字母被转换为小写字母。
外文名
toLowerCase
用    途
字符串中的字母被转换为小写字母
领    域
计算机
特    点
对非字母字符不会产生影响

词语解释

播报
编辑
墓想拔String java.lang.String.toLowerCase(陵腊狼凝 )
toLowerCase 方法返回一个字符串,该字符串中的字母被转换为小写字母。
strVariable.toLowerCase( )
"String Literal".toLowerCase( )
说明 toLowerCase 方法对非字母字符不会产生影响。
下面的示例演示狱笑键了 of the toLowerCase 方法的效付局埋果:
var strVariable = "This is a STRING object"; strVariable = strVariable.toLowerCase( ); 在执行上一条语句后 strVar迎归iable谜项故 的值为:
this is a s记享tring obje整断ct

相关方法

播报
编辑
toUpperCase( )把字符变为大写

实例

播报
编辑
如何使用 toLowerCase( ) 来把字符串转换成小写。
<scripttype="text/javascript"> var str="HelloWorld!" document.write(str.toLowerCase()) </script>