ASP函数大全(数字函数)(8)
来源:asp之家 时间:2009-06-01 12:33:00
Right()
函数返回字符串右边第length个字符以前的字符(含第length个字符).
表达式 Right(string, length)
实例:
<%
strTest = "This is an test!"
response.write Right(strTest, 3)
%>
返回结果: st!
Rnd()
函数产生一个随机数.
表达式 Rnd [ (number) ]
实例:
<%
Randomize()
response.write RND()
%>
返回结果: 任何一个在0 到 1 之间的数
Round()
函数返回按指定位数进行四舍五入的数值.
表达式 Round(expression [, numRight])
实例:
<%
i = 32.45678
response.write Round(i)
%>
返回结果: 32
Rtrim()
函数去掉字符串右边的字符串.
表达式 Rtrim(string)
实例:
<%
strTest = "This is a test!! "
response.write RTrim(strTest)
%>
返回结果: This is a test!!
Split()
函数将一个字符串分割并返回分割结果
表达式 Split (S[,d])
实例:
<%V= Split(A,B,C)
For i = 0 To UBound(V)
Response.Write V(i)
Next
%>
返回结果: A B C
Second()
函数返回秒.
表达式 Second(time)
实例:
<%=Second(#12:34:28 PM#)%>
返回结果: 28
标签:函数,asp,时间,日期,数字
0
投稿
猜你喜欢
Linux下python3.7.0安装教程
2021-07-30 05:25:58
微信跳一跳python代码实现
2021-09-16 05:35:09
python如何通过psutil获取服务器cpu、内存、磁盘使用率
2022-11-07 01:01:29
Python 制作查询商品历史价格的小工具
2021-10-13 06:03:16
MySql使用skip-name-resolve解决外网链接客户端过慢问题
2024-01-26 16:07:35
Go select使用与底层原理讲解
2024-04-28 09:14:11
oracle跨库查询的方法
2023-07-18 03:15:35
Python版名片管理系统
2021-08-28 18:51:22
Python的内置数据类型中的数字
2023-12-29 19:36:37
python中的print()输出
2023-06-27 18:07:03
superLink,让伪链接更有可用性
2009-06-02 12:35:00
详解Golang 与python中的字符串反转
2021-08-01 23:31:08
浅谈golang的http cookie用法
2024-02-12 06:14:59
一篇文章带你了解python正则表达式的正确用法
2023-01-05 19:20:30
Python扩展内置类型详解
2023-03-19 17:23:36
Python定时执行之Timer用法示例
2021-09-14 21:46:01
QQ登录Banner之清明概念
2009-04-15 11:41:00
nodejs 的 session 简单使用
2024-05-11 09:51:19
六种酷炫Python运行进度条效果的实现代码
2022-06-07 05:22:16
python PyTorch预训练示例
2022-07-06 18:24:02