欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

ASP常用函数:Trace()

程序员文章站 2023-11-12 15:21:40
复制代码 代码如下:<%  '//---- 输入字符串并结束当前页面(调试用),函数可以也命名为debug  ----//&n...
复制代码 代码如下:

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