JavaScript toLocaleLowerCase()Method

String 对象参考手册JavaScript String Object

Example

Convert the string to lowercase:

var str = "Example"; var res = str.toLocaleLowerCase();

resOutput result:

example

Try it Yourself »

Definition and Usage

The toLocaleLowerCase() method converts a string to lowercase based on the host's current locale.

The locale is determined by the browser's language settings.

Usually, this method is the same astoLowerCase()the result returned by the method; only a few languages (such as Turkish) have locale-specific case mappings.

Note:The toLocaleLowerCase() method does not change the original string.

Tip:UsetoLocaleUpperCase()the method to convert a string to uppercase based on the host's locale.


Browser Support

The numbers in the table indicate the first browser version that supports this property.

Method
toLocaleLowerCase() Yes Yes Yes Yes Yes

Syntax

string.toLocaleLowerCase()

Parameter Values

None.

Return Value

Type Description
String

Converted to lowercase based on the local language.

Technical Details

JavaScript Version: ECMAScript 1


String 对象参考手册JavaScript String Object

Other Extensions