VBScript LCase 函數
完整的 VBScript 參考手冊
LCase 函數把指定字符串轉換為小寫。
提示:請參閱 UCase 函數。
語法
參數 | 描述 |
string | 必需。需要被轉換為小寫的字符串。 |
實例
實例 1
<script type="text/vbscript">
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>
以上實例輸出結果:
this is a beautiful day!
嘗試一下 ?
完整的 VBScript 參考手冊