当前位置: 移动技术网 > IT编程>开发语言>Asp > ASP常用函数:Trace()

ASP常用函数:Trace()

2017年12月12日  | 移动技术网IT编程  | 我要评论
复制代码 代码如下:

<% 
'//---- 输入字符串并结束当前页面(调试用),函数可以也命名为debug  ----// 

function trace(s) 
    on error resume next 
    response.write(s & vbcrlf) 
    response.end() 
end function 
%> 

下面的是个修改升级版,还在测试中...

复制代码 代码如下:

<% 
'//---- 输入字符串并结束当前页面(调试用)  ----// 

function trace(s) 
    on error resume next 
    if isarray(s) then 
        for i = 0 to ubound(s) 
            response.write(s(i) & vbcrlf) 
        next 
    else 
        response.write(s & vbcrlf) 
    end if 
    response.end() 
end function 
%> 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网