StrReverse
StrReverse函数可反转指定的字符串。
语法
StrReverse(string)
例
<!DOCTYPE html> <html> <body> <script language = "vbscript" type = "text/vbscript"> document.write("Line 1 : " & StrReverse("VBSCRIPT") & "<br />") document.write("Line 2 : " & StrReverse("My First VBScript") & "<br />") document.write("Line 3 : " & StrReverse("123.45") & "<br />") </script> </body> </html>
将其另存为.html并在Internet Explorer中执行时,上述脚本将产生以下结果:
Line 1 : TPIRCSBV Line 2 : tpircSBV tsriF yM Line 3 : 54.321
作者:terry,如若转载,请注明出处:https://www.web176.com/vbscript/1240.html