亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

asp下經(jīng)常用到的代碼

 更新時間:2008年01月09日 13:45:45   作者:  
點擊提示“確定”與“取消”提示框,主要用于刪除確認
點擊提示“確定”與“取消”提示框
onclick='{if(confirm("您確定刪除嗎?此操作將不能恢復!")){return true;}return false;}'


刪除.LDB文件
<%
Application.Contents.Removeall()
%>

將HTML格式轉(zhuǎn)換為純文本格式
<%  
Function RemoveHTML(strHTML)  
 Dim objRegExp, Match, Matches     
 Set objRegExp = New Regexp  

 objRegExp.IgnoreCase = True  
 objRegExp.Global = True  
 '取閉合的<>  
 objRegExp.Pattern = "<.+?>"  
 '進行匹配  
 Set Matches = objRegExp.Execute(strHTML)  

 ' 遍歷匹配集合,并替換掉匹配的項目  
 For Each Match in Matches     
     strHtml=Replace(strHTML,Match.Value,"")  
 Next  
 RemoveHTML=strHTML  
 Set objRegExp = Nothing  
End Function  

%>
調(diào)用
<%=RemoveHTML(你的字段)%>


25、當前頁地址
<% 
response.write "http://"&Request.ServerVariables("server_name")&Request.ServerVariables("script_name") 
%>

相關(guān)文章

最新評論