VBScript LCase 函數

LCase 函數把指定字串轉換為小寫。
提示:請參閱 UCase 函數。
語法
LCase(string)
參數 | 描述 |
---|---|
string | 必需。需要被轉換為小寫的字串。 |
實例
實例 1
<script type="text/vbscript">
txt="THIS IS A BEAUTIFUL DAY!"
document.write(LCase(txt))
</script>
txt="THIS IS A BEAUTIFUL DAY!"
document.write(LCase(txt))
</script>
以上實例輸出結果:
this is a beautiful day!
實例 2
<script type="text/vbscript">
txt="This is a BEAUTIFUL day!"
document.write(LCase(txt))
</script>
txt="This is a BEAUTIFUL day!"
document.write(LCase(txt))
</script>
以上實例輸出結果:
this is a beautiful day!
