1、描述
此方法用于在符合当前语言环境的情况下将字符串中的字符转换为大写。对于大多数语言,它返回与toUpperCase
相同的输出。
2、语法
它的语法如下:
string.toLocaleUpperCase( )
3、返回值
使用当前语言环境以大写字母返回字符串。
4、使用示例
<html> <head> <title>JavaScript String toLocaleUpperCase() Method</title> </head> <body> <script type = "text/javascript"> var str = "https://www.wonhero.com"; document.write(str.toLocaleUpperCase()); </script> </body></html>
5、输出
HTTPS://WWW.CJAVAPY.COM
免责声明:以上内容(如有图片或视频亦包括在内)有转载其他网站资源,如有侵权请联系删除