返回一個字符串,該字符串中的字母被轉換為小寫字母。
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 對象
新聞熱點
疑難解答