龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > 软件开发 > JAVA开发 >

toLowerCase 方法

时间:2009-12-23 15:42来源:未知 作者:admin 点击:
分享到:
返回一个字符串,该字符串中的字母被转换为小写字母。 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 对象


  
精彩图集

赞助商链接