仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2001|回复: 19
打印 上一主题 下一主题

[学习教程] ASP网页设计ASP 系列函数大全(3)

[复制链接]
兰色精灵 该用户已被删除
跳转到指定楼层
楼主
发表于 2015-2-3 23:30:53 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
asp是基于web的一种编程技术,可以说是cgi的一种。它可以完成以往cgi程序的所有功能,如计数器、留言簿、公告板、聊天室等等。函数     前往了局: False 
   
   
  IsNumeric() 
   
  函数判别一对象是不是为数字,前往布尔值. 
   
  表达式 IsNumeric(expression) 
   
  实例: <% 
   
  i = "345" 
   
  response.write IsNumeric(i) 
   
  %> 
   
  前往了局: True 
   
  就算数字加了引号,ASP仍是以为它是数字。 
   
   
  IsObject() 
   
  函数判别一对象是不是为对象,前往布尔值. 
   
  表达式 IsObject(expression) 
   
  实例: <% 
   
  Set con = Server.CreateObject("ADODB.Connection") 
   
  response.write IsObject(con) 
   
  %> 
   
  前往了局: True 
   
   
  LBound() 
   
  函数前往指定命组维的最小可用下标. 
   
  表达式 Lbound(arrayname [, dimension]) 
   
  实例: <% 
   
  i = Array("Monday","Tuesday","Wednesday") 
   
  response.write LBound(i) 
   
  %> 
   
  前往了局: 0 
   
   
  LCase() 
   
  函数 前往字符串的小写模式 
   
  表达式 Lcase(string) 
   
  实例: <% 
   
  strTest = "This is a test!" 
   
  response.write LCase(strTest) 
   
  %> 
   
  前往了局: this is a test! 
   
   
  Left() 
   
  函数前往字符串右边第length个字符之前的字符(含第length个字符). 
   
  表达式 Left(string, length) 
   
  实例: <% 
   
  strTest = "This is a test!" 
   
  response.write Left(strTest, 3) 
   
  %> 
   
  前往了局: Thi 
   
   
  Len() 
   
  函数前往字符串的长度. 
   
  表达式 Len(string | varName) 
   
  实例: <% 
   
  strTest = "This is a test!" 
   
  response.write Len(strTest) 
   
  %> 
   
  前往了局: 15 
   
   
  LTrim() 
   
  函数去失落字符串右边的空格. 
   
  表达式 LTrim(string) 
   
  实例: <% 
   
  strTest = " This is a test!" 
   
  response.write LTrim(strTest) 
   
  %> 
   
  前往了局: This is a test! 
   
   
  Mid() 
   
  函数前往特定长度的字符串(从start入手下手,长度为length). 
   
  表达式 Mid(string, start [, length]) 
   
  实例: <% 
   
  strTest = "This is a test! Today is Monday." 
   
  response.write Mid(strTest, 17, 5) 
   
  %> 
   
  前往了局: Today 
   
   
  Minute() 
   
  函数前往工夫的分钟. 
   
  表达式 Minute(time) 
   
  实例: <%=Minute(#12:45:32 PM#)%> 
   
  前往了局: 45 
   
   
  Month() 
   
  函数前往日期. 
   
  表达式 Month(date) 
   
  实例: <%=Month(#08/04/99#)%> 
   
  前往了局: 8 
   
   
  MonthName() 
   
  函数前往指定月份 
   
  表达式 MonthName(month, [, Abb]) 
   
  实例: <%=MonthName(Month(#08/04/99#))%> 
   
  前往了局: August 
   
   
  Now() 
   
  函数前往体系工夫 
   
  表达式 Now() 
   
  实例: <%=Now%> 
   
  前往了局: 9/9/00 9:30:16 AM 
   
   
  Right() 
   
  函数前往字符串右侧第length个字符之前的字符(含第length个字符). 
   
  表达式 Right(string, length) 
   
  实例: <% 
   
  strTest = "This is an test!" 
   
  response.write Right(strTest, 3) 
   
  %> 
   
  前往了局: st! 
   
   
  Rnd() 
   
  函数发生一个随机数. 
   
  表达式 Rnd [ (number) ] 
   
  实例: <% 
   
  Randomize()asp可以轻松地实现对页面内容的动态控制,根据不同的浏览者,显示不同的页面内容。而浏览者一点觉察不出来,就像为他专门制作的页面一样。使用各种各样的组件,asp可以完成无比强大的功能。
兰色精灵 该用户已被删除
沙发
 楼主| 发表于 2015-7-18 11:08:26 | 显示全部楼层
跟学别的语言一样,先掌握变量,流程控制语句(就是ifwhileselect)等,函数/过程,数组
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-5-13 05:22

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表