toLocaleLowerCase()和toLowerCase()之间的区别? [英] Difference between toLocaleLowerCase() and toLowerCase()?

查看:814
本文介绍了toLocaleLowerCase()和toLowerCase()之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这两者有什么区别?

toLocaleLowerCase()的说明提到将字符串转换为小写字母,根据主持人的语言环境

The description for the toLocaleLowerCase() mentions Converts a string to lowercase letters, according to the host's locale.

主持人的语言环境是什么?

What is the host's locale ?

推荐答案

根据w3schools定义和使用

Definition and Usage as per w3schools

toLocaleLowerCase() method根据主机的当前语言环境将字符串转换为小写字母。

The toLocaleLowerCase() method converts a string to lowercase letters, according to the host's current locale.

语言环境基于浏览器的语言设置。

通常,此方法返回与toLowerCase()方法相同的结果。但是,对于某些语言环境,如果语言与常规Unicode案例映射发生冲突(例如土耳其语),结果可能会有所不同。

Generally, this method returns the same result as the toLowerCase() method. However, for some locales, where language conflict with the regular Unicode case mappings occurs (such as Turkish), the results may vary.

这篇关于toLocaleLowerCase()和toLowerCase()之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆