Javascript String.toLocaleUpperCase()方法
作者:--
发布时间:2019-11-20
评论:0
阅读:0
此方法用于在字符的字符串内同时遵守当前语言环境转换为大写。对于大多数语言,这与touppercase 的返回值一样。
语法
string.tolocaleuppercase( )
下面是参数的详细信息:
返回值:
例子:
<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.