文字
分享


toLowerCase 方法

返回一个字符串,该字符串中的字母被转换为小写字母。

strVariable.toLowerCase( )
"String Literal".toLowerCase( )

说明

toLowerCase 方法对非字母字符不会产生影响。

下面的示例演示了 of the toLowerCase 方法的效果:

1

2

<code>var strVariable = "This is a STRING object";

strVariable = strVariable.<span class="cfe"><b>toLowerCase( )</b></span>;</code>

在执行上一条语句后 strVariable 的值为:

1

<code>this is a string object</code>

要求

版本 1

请参阅

String 对象的方法 | String 对象的属性 | toUpperCase 方法

应用于: String 对象