选择显示字体大小

asp 系列函数大全(4)

     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 
   
   
  strreverse() 
   
  函数反排一字符串 
   
  表达式 strreverse(string) 
   
  实例: <% 
   
  strtest = "this is a test!!" 
   
  response.write strreverse(strtest) 
   
  %> 
   
  返回结果: !!tset a si siht 
   
   
  time() 
   
  函数返回系统时间. 
   
  表达式 time() 
   
  实例: <%=time%> 
   
  返回结果: 9:58:28 am 
   
   
  trim() 
   
  函数去掉字符串左右的空格. 
   
  表达式 trim(string) 
   
  实例: <% 
   
  strtest = " this is a test!! " 
   
  response.write trim(strtest) 
   
  %> 
   
  返回结果: this is a test!! 
   
   
  ubound() 
   
  函数返回指定数组维数的最大可用下标>. 
   
  表达式 ubound(arrayname [, dimension]) 
   
  实例: <% 
   
  i = array("monday","tuesday","wednesday") 
   
  response.write ubound(i) 
   
  %> 
   
  返回结果: 2 
   
   
  ucase() 
   
  函数返回字符串的大写形式. 
   
  表达式 ucase(string) 
   
  允许数据类型: 
   
  实例: <% 
   
  strtest = "this is a test!!" 
   
  response.write ucase(strtest) 
   
  %> 
   
  返回结果: this is a test!! 
   
   
  vartype() 
   
  函数返回指示变量子类型的值 
   
  表达式 vartype(varname) 
   
  实例: <% 
   
  i = 3 
   
  response.write vartype(i) 
   
  %> 
   
  返回结果: 2(数字)详见"asp常数" 
   
   
  weekday() 
   
  函数返回在一周的第几天. 
   
  表达式 weekday(date [, firstdayofweek]) 
   
  实例: <% 
   
  d = #9/9/00# 
   
  response.write weekday(d) 
   
  %> 
   
  返回结果: 4(星期三) 
   
   
  weekdayname() 
   
  函数返回一周第几天的名字. 
   
  表达式 weekdayname(weekday [, abb [, firstdayofweek]]) 
   
  实例: <% 
   
  d = #9/9/00# 
   
  response.write weekdayname(weekday(d)) 
   
  %> 
   
  返回结果: wednesday 
   
   
  year() 
   
  函数返回当前的年份. 
   
  表达式 year(date) 
   
  实例: <%=year(#9/9/00#)%> 
   
  返回结果: 1999
  
    


 


关键字 本文所属关键字

相关 与本文相关文章

分类 所有文章关键字导航

源码编程相关

Java   Asp   PHP   .Net   XML   C/C++   CGI   VB   Jsp   J2ee   J2se   J2me   EJB   Servlet   Tomcat   Resin   Struts   Weblogic   Eclipse   ANT   GUI   JMS   Web servise   IDEA   Webphere   Hibernate   Spring   Jboss   Applet   Swing   Socket   Javamail   Perl   Ajax   P2P   安全   模式   框架   测试   开源   游戏

SQL数据库相关

My-SQL   Ms-SQL   Access   DB2   Oracle   Sybase   SQLserver   索引   存储过程   加密   数据库   分页   视图  

手机无线相关

3G   Wap   CDMA   GRPS   GSM   IVR   彩信   短信   无线   增值业务

网页设计制作相关

HTML   CSS   网页配色   网页特效   Javascript   VBscript   Dreamweaver   Frontpage   JS   Web   网站设计

网站建设推广相关

建站经验   网站优化   网站排名   推广   Alexa

操作系统/服务器相关

Windows XP   Windows 2000   Windows 2003   Windows Me   Windows 9.x   Linux   UNIX   注册表   操作系统   服务器   应用服务器

图形图像多媒体相关

Photoshop   Fireworks   Flash   Coreldraw   Illustrator   Freehand   Photoimpact   多媒体   图形图像

标准 网站致力的规范

Valid CSS!

无不良内容,无不良广告,无恶意代码

Valid XHTML 1.0 Transitional

creativecommons