首页 > 其他分享 >将变量值作为新的变量名

将变量值作为新的变量名

时间:2022-09-04 17:59:30浏览次数:58  
标签:UserName 文件 Execute ASP 变量值 作为 str 变量名

ASP动态定义变量之将变量的值作为变量名
<%
Dim str : str = "UserName"
Execute("dim " & str & " : " & str & "=""subendong""")
Response.Write(UserName)
execute("dim arr_bigClass(10,1)")'数组是从0开始的
Response.Write( ubound(arr_bigClass, 2) )
%>

说明:没什么特别,您只要将Execute里面的参数理解成文件里的内容就可以了。
ASP Execute 方法
定义和用法
Execute 方法从另外一个 ASP 文件中执行 ASP 文件。在被调用的 .asp 文件执行完毕后,控制权会返回原始的 .asp 文件。

标签:UserName,文件,Execute,ASP,变量值,作为,str,变量名
From: https://www.cnblogs.com/xingxing15/p/16655561.html

相关文章