VBScript StrReverse 函數
定義和用法
StrReverse 函數可反轉一個字符串。
語法
StrReverse(string)
參數 | 描述 |
---|---|
string | 必需的。需被反轉的字符串。 |
實例
例子 1
dim txt txt="This is a beautiful day!" document.write(StrReverse(txt))
輸出:
!yad lufituaeb a si sihT
StrReverse 函數可反轉一個字符串。
StrReverse(string)
參數 | 描述 |
---|---|
string | 必需的。需被反轉的字符串。 |
dim txt txt="This is a beautiful day!" document.write(StrReverse(txt))
輸出:
!yad lufituaeb a si sihT