对于大多数语言,它返回与toUpperCase相同的输出。
string.toLocaleUpperCase( )
返回当前区域设置为大写的字符串。
链接:https://www.learnfk.comhttps://www.learnfk.com/javascript/string-tolocaleuppercase.html
来源:LearnFk无涯教程网
<html> <head> <title>JavaScript String toLocaleUpperCase() Method</title> </head> <body> <script type="text/javascript"> var str="Apples are round, and Apples are Juicy."; document.write(str.toLocaleUpperCase( )); </script> </body> </html>
运行上面代码输出
APPLES ARE ROUND, AND APPLES ARE JUICY.
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)