toLowerCase

toLowerCase

toLowerCase 方法

詞語解釋

String java.lang.String.toLowerCase()

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

相關方法

toUpperCase()把字元變為大寫

實例

如何使用 toLowerCase() 來把字元串轉換成小寫。

相關詞條

相關搜尋

熱門詞條

聯絡我們