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