收集整理 时间是: 02/06/06 下午 01:17:41.
文件名称: jsmthtolowercase.htm
页面标题: toLowerCase 方法  •  文件大小: 1918  •  最后更新: Mon, 06 Feb 2006 02:23:48 GMT

toLowerCase 方法

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

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 对象