在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Array() <% Dim myArray() For i = 1 to 7 Redim Preserve myArray(i) myArray(i) = WeekdayName(i) Next %> 返回结果: 建立了一个包含7个元素的数组myArray CInt() <% f = "234" response.write cINT(f) + 2 %> 返回结果: 236
CreateObject() <% CStr() <% s = 3 + 2 response.write "The 返回结果 is: " & cStr(s) %> 返回结果: 转化数字“5”为字符“5”。 <%=Date%> 返回结果: 9/9/00 <% currentDate = #9/9/00# newDate = DateAdd("m",3,currentDate) response.write newDate %> <% currentDate = #12:34:45 PM# newDate = DateAdd("h",3,currentDate) response.write newDate %> 返回结果: 9/9/00 DateDiff() <% fromDate = #9/9/00# toDate = #1/1/2000# response.write "There are " & _ DateDiff("d",fromDate,toDate) & _ " days to millenium from 9/9/00." %> 返回结果: 从9/9/00 到2000年还有 150 天. <%=Day(#9/9/00#)%> 返回结果: 4 FormatCurrency() <%=FormatCurrency(34.3456)%> 返回结果: $34.35 以上就是ASP函数大全的全部内容,希望对大家的学习有所帮助。 |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论