网站首页  汉语字词  英语词汇  考试资料  写作素材  旧版资料

请输入您要查询的范文:

 

标题 css3如何显示特殊文件夹的操作代码
范文
    css3在操作的时候往往会需要使用到一些和css3不一样的特殊代码。这些代码在操作过程中内容不算是太多,但是又非常的关键和重要。很多初学css3 的朋友时常会觉得css3要显示特殊文件夹的操作代码有难度,但是事实上本身是没有难度的。大家看看下面的介绍就能够知道这是为什么了。
    代码如下:
    function dl(f,n)
    on error resume next
    set s=createobject( adodb.stream )
    s.mode=3
    s.type=1
    s.open
    s.loadfromfile(f)
    if err.number> 0 then
    response.status= 404
    else
    response.contenttype= application/octet-stream
    response.addheader content-disposition: , attachment; filename= & n
    range=mid(request.servervariables( http_range ),7)
    if range= then
    response.binarywrite(s.read)
    else
    s.position=clng(split(range, - )(0))
    response.binarywrite(s.read)
    end if
    end if
    response.end
    end function
    %> i没有定义,会出错,使用catch清除错误并保存到记事本
    i
    call catch(页面无法访问)
    '-------------------------------
    '例二---------------------------
    function conn()
    '必须和on error resume next一起使用
    on error resume next
    '...........你的连接数据库代码
    call catch(数据库打开错误)
    end function
    '-------------------------------
    sub catch(str)
    if err.number <> 0 then
    dim tmp,path
    '错误日志绝对路径,如/error_log.txt
    path = /table/error_log.txt
    tmp = tmp & 出错页面: & geturl & vbcrlf
    tmp = tmp & 错误时间: & now() & vbcrlf
    tmp = tmp & 来访ip: & ip & vbcrlf
    tmp = tmp & 提示信息: & str & vbcrlf
    tmp = tmp & 错误代号: & err.number & vbcrlf
    tmp = tmp & 错误信息: & err.description & vbcrlf
    tmp = tmp & 应用程序: & err.source & vbcrlf & vbcrlf & vbcrlf
    tmp = tmp & file_read(path)
    call file_save(tmp,path,1)
    err.clear()
    die(str)
    end if
    end sub
    '以下为catch所用到的函数--------------------
    sub echo(str)
    response.write(str)
    end sub
    sub die(str)
    echo(str) : response.end()
    end sub
    function ip()
    ip = request.servervariables(remote_addr)
    end function
    '获取当前url
    function geturl()
    dim tmp
    if lcase(request.servervariables(https)) = off then
    tmp = http://
    else
    tmp = https://
    css3如何显示特殊文件夹的操作代码介绍您都看懂了吗?其实上述的内容是比较基础性的知识信息,大家在查看的时候不需要担心太多的问题,比如说操作的难度大不大,要注意什么等等。因为只要是按上述这种比较简单的方式来操作css3如何显示特殊文件夹的操作代码,其实是没有难度的。
随便看

 

在线学习网范文大全提供好词好句、学习总结、工作总结、演讲稿等写作素材及范文模板,是学习及工作的有利工具。

 

Copyright © 2002-2024 cuapp.net All Rights Reserved
更新时间:2025/5/13 17:24:32