Share via


toLowerCase 方法

更新:2007 年 11 月

傳回所有字母字元都轉換成小寫的字串。

 function toLowerCase() : String

備註

toLowerCase 方法對於非字母字元不會產生任何影響。

範例

以下範例說明使用 toLowerCase 方法的效果:

var strVariable = "This is a STRING object";
strVariable = strVariable.toLowerCase();

在最後一個陳述式之後,strVariable 的值為:

this is a string object

需求

1 版

套用至︰

String 物件

請參閱

參考

toUpperCase 方法