VBScript LCase 函數(shù)
定義和用法
LCase 函數(shù)可把指定的字符串轉(zhuǎn)換為小寫。
提示:請(qǐng)參閱 UCase 函數(shù)。
語(yǔ)法
LCase(string)
參數(shù) | 描述 |
---|---|
string | 必需的。需要被轉(zhuǎn)換為小寫的字符串。 |
實(shí)例
例子 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!