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