VBScript StrReverse 函數(shù)

2022-08-19 09:59 更新

VBScript StrReverse 函數(shù)返回一字符串,其中字符的順序與指定的字符串中的順序相反。


VBScript 參考手冊(cè)完整的 VBScript 參考手冊(cè)

StrReverse 函數(shù)反轉(zhuǎn)一個(gè)字符串。

語法

StrReverse(string)

參數(shù) 描述
string 必需。需被反轉(zhuǎn)的字符串。

實(shí)例 1

Dim txt
txt="This is a beautiful day!"
document.write(StrReverse(txt))
Output:
!yad lufituaeb a si sihT


VBScript 參考手冊(cè)完整的 VBScript 參考手冊(cè)
以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)