VBScript LTrim 函數(shù)
定義和用法
LTrim 函數(shù)可刪除字符串左側(cè)的空格。
語法
Len(string|varname)
參數(shù) | 描述 |
---|---|
string | 字符串表達(dá)式。 |
實(shí)例
例子 1
dim txt txt=" This is a beautiful day! " document.write(LTrim(txt))
輸出:
"This is a beautiful day! "
LTrim 函數(shù)可刪除字符串左側(cè)的空格。
Len(string|varname)
參數(shù) | 描述 |
---|---|
string | 字符串表達(dá)式。 |
dim txt txt=" This is a beautiful day! " document.write(LTrim(txt))
輸出:
"This is a beautiful day! "