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