VBScript:StrReverse函数

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

(0)
打赏 支付宝 支付宝 微信 微信
terryterry
上一篇 2020年12月8日 下午5:34
下一篇 2020年12月9日 下午5:10

相关推荐

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注