函數過程: 複製代碼 代碼如下:<% 'del.asp dim fso,tmpfolder,tmpsubfolder,tmpfile,tmpfiles set fso=server.CreateObject("Scripting.FileSystemObject") sub delfolder(sPath)
Function getIpvalue(clientIP)'得到用戶端的IP轉換成長整型,傳回值getIpvalue On Error Resume Next Dim strIp, array_Ip strIp=0 array_Ip = Split(clientIP,".") If UBound(array_Ip)<>3 Then getIpvalue=0 Exit Function End If For i=0 To 3 strIp=strIp+(CInt(array_Ip(i))
<% '****************************** '函數:Generator(Length) '參數:Length,任意長度的數值,隨機碼位元 '作者:阿里西西 '日期:2007/7/15 '描述:產生任意英文+數字位元長度的隨機碼函數 '樣本:Generator(80) '****************************** Function Generator(Length) Dim i, tempS
<%@ language=vbscript codepage=65001%> <% 'Filename must be input if Request("Filename")="" then response.write "<h1>Error:</h1>Filename is empty!<p>" else call downloadFile(replace(replace(Request("Filename"),"\",""),"/","
複製代碼 代碼如下: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Test { class Program { static void Main(string[] args) { var customer = new Customer { IsActive = true, LateFees = 100M, TotalRentNumber = 10 }
<% '****************************** '函數:NewOrder(ArrStr) '參數:Rstr,以逗號做分隔的數字數組 '作者:阿里西西 '日期:2007/7/13 '描述:重排序數字數組 '樣本:<%=NewOrder("34,53,13,22,38,86,111,23,65")%> '****************************** Function NewOrder(ArrStr) For i =