English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
toLocaleUpperCase()The method method converts the string to uppercase in a local way.
In most cases, this method will produce the same result astoUpperCase()The same result, but for some language environments (such as Turkish), the case mapping does not follow the default case mapping in Unicode, so different results may occur.
string.toLocaleUpperCase()
var str = "www.oldtoolbag.com"; var low = str.toLocaleUpperCase();Test See‹/›
All browsers fully support the toLocaleUpperCase() method:
Method | |||||
toLocaleUpperCase() | Yes | Yes | Yes | Yes | Yes |
Return Value: | A new string representing the call string will be converted to uppercase according to any language-specific case mapping. |
---|---|
JavaScript Version: | ECMAScript 1 |