VBScript UCase 函数

UCase 函数把指定的字符串转换为大写。
提示:请参阅 LCase 函数。
语法
UCase(string)
参数 | 描述 |
---|---|
string | 必需。需被转换为大写的字符串。 |
实例
实例 1
<script type="text/vbscript">
txt="This is a beautiful day!"
document.write(UCase(txt))
</script>
txt="This is a beautiful day!"
document.write(UCase(txt))
</script>
以上实例输出结果:
THIS IS A BEAUTIFUL DAY!
尝试一下 »
实例 2
<script type="text/vbscript">
txt="This is a BEAUTIFUL day!"
document.write(UCase(txt))
</script>
txt="This is a BEAUTIFUL day!"
document.write(UCase(txt))
</script>
以上实例输出结果:
THIS IS A BEAUTIFUL DAY!
尝试一下 »
