教程集 www.jiaochengji.com
教程集 >  脚本编程  >  Asp.net  >  正文 ASP日志类和判断是否包涵JS脚本类

ASP日志类和判断是否包涵JS脚本类

发布时间:2016-09-23   编辑:jiaochengji.com
教程集为您提供ASP日志类和判断是否包涵JS脚本类等资源,欢迎您收藏本站,我们将为您提供最新的ASP日志类和判断是否包涵JS脚本类资源
本文章来给大家介绍ASP日志类和判断是否包涵JS脚本类,各位有需要了解学习的同学可进入参考。

ASP日志类

<table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy8987')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id=copy8987>

Function WriteLogReg(Error_lerong)
    On Error Resume Next
    LogFileTmp = "Error.log"
    Set tmpFsoR = Server.CreateObject("scripting.filesystemobject")
    Set tmpLogR = tmpFsoR.OpentextFile(Server.MapPath(LogFileTmp), 8, True)
    tmpLogR.Writeline "时间:" & Now
    tmpLogR.Writeline "内容:" & Error_lerong
    tmpLogR.WriteBlankLines (1)
    tmpLogR.Close
    Set tmpLogR = Nothing
    Set tmpFsoR = Nothing
End Function

判断是否包涵JS脚本类

<table width="620" align="center" border="0" cellpadding="1" cellspacing="1" style="background:#FB7"> <tr> <td width="464" height="27" bgcolor="#FFE7CE"> 代码如下</td> <td width="109" align="center" bgcolor="#FFE7CE" style="cursor:pointer;" onclick="doCopy('copy1412')">复制代码</td> </tr> <tr> <td height="auto" colspan="2" valign="top" bgcolor="#FFFFFF" style="padding:10px;" class="copyclass" id=copy1412>function jszhuru(str)
    str = Replace(str,"<s","<")
    str = Replace(str,">",">")
    str = Replace(str,"",""")
    str = Replace(str,"'","'")
    jszhuru = str
end function

您可能感兴趣的文章:
ASP日志类和判断是否包涵JS脚本类
GO语言-文件版日志系统
golang日志服务器_深扒GO日志 | (一)从Go语言的日志包说起
学习linux shell中 if else以及大于、小于、等于逻辑表达式
解决PHP中Web程序中shell_exec()执行Shell脚本不成功问题
使用日志保护Linux的安全
检测浏览器版本的js代码
logrotate结合cron管理linux日志
常用js验证代码大全(Email、手机号码、身份证号码、文件类型等)
JS如何判断上传文件类型

[关闭]
~ ~