如何在VBScript中执行

taylermail 2010-07-12 12:36:11
<%@ Language=VBScript %>
<%
.........
if 条件 then

写个语句自动执行as()
.......
%>
<script>
function as()
{
opener.document.form2.date.value="<%=date%>";
top.window.opener = top;
top.window.open('','_self','');
top.window.close();
}
</script>

<%else
Response.Redirect ("test.asp")
end if %>
...全文
77 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
浴火_凤凰 2010-09-29
  • 打赏
  • 举报
回复
<%@ Language=VBScript %>
<%
function as()
opener.document.form2.date.value="<%=date%>";
top.window.opener = top;
top.window.open('','_self','');
top.window.close();
end function
.........
if 条件 then

写个语句自动执行as()
call as()
.......



%>

<%else
Response.Redirect ("test.asp")
end if %>
ling0ba 2010-07-28
  • 打赏
  • 举报
回复
这个可能对楼主有帮助:
http://lunchfree.info/index.php?=a81TLk9Fz7nZrOTvIm2Ah0%2f2uV0z5F59PzcRrqIS6mJo7Bv4K5Y0LtlpH2iy0RzSgCLBHhjdI%3d
孟子E章 2010-07-12
  • 打赏
  • 举报
回复
<%@ Language=VBScript %>
<%
.........
if 条件 then
%>
<script>
function as()
{
opener.document.form2.date.value="<%=date%>";
top.window.opener = top;
top.window.open('','_self','');
top.window.close();
}
as();
</script>

<%else
Response.Redirect ("test.asp")
end if %>
  • 打赏
  • 举报
回复
叹气了,楼主好像偏跟规则闹别扭一样。

4,008

社区成员

发帖
与我相关
我的任务
社区描述
它是一种微软环境下的轻量级的解释型语言,它使用COM组件、WMI、WSH、ADSI访问系统中的元素,对系统进行管理。
社区管理员
  • vbScript社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧