toLowerCase 方法
返回一个字符串,该字符串中的字母被转换为小写字母。 strVariable . toLowerCase() "String Literal". toLowerCase() 说明 toLowerCase 方法对非字母字符不会产生影响。 下面的示例演示了 of the toLower
返回一个字符串,该字符串中的字母被转换为小写字母。
strVariable.toLowerCase( )
"String Literal".toLowerCase( )
说明
toLowerCase 方法对非字母字符不会产生影响。
下面的示例演示了 of the toLowerCase 方法的效果:
var strVariable = "This is a STRING object";
strVariable = strVariable.toLowerCase( );
在执行上一条语句后 strVariable 的值为:
this is a string object
要求
版本 1
请参阅
String 对象的方法 String 对象的属性 toUpperCase 方法
应用于: String 对象
- 上一篇:toUpperCase 方法
- 下一篇:toLocaleString 方法
精彩图集
精彩文章