VBScript LCase 函數
定義和用法
LCase 函數可把指定的字符串轉換為小寫。
提示:請參閱 UCase 函數。
語法
LCase(string)
參數 | 描述 |
---|---|
string | 必需的。需要被轉換為小寫的字符串。 |
實例
例子 1
dim txt txt="THIS IS A BEAUTIFUL DAY!" document.write(LCase(txt))
輸出:
this is a beautiful day!
例子 2
dim txt txt="This Is a Beautiful Day!" document.write(LCase(txt))
輸出:
this is a beautiful day!