VBScript Mid 函数 |
您所在的位置:网站首页 › 字符串mid › VBScript Mid 函数 |
w3school 在线教程
HTML 系列教程
浏览器脚本
服务器脚本
编程教程
XML 系列教程
建站手册
参考手册
VBScript 教程
VB 教程
VB 简介
VB How to
VB Where to
VB 变量
VB 程序
VB 条件语句
VB 循环语句
VB 教程总结
VBScript 实例
VB 实例
VBScript 参考手册
VB 函数
VB 关键字
VBScript Mid 函数
VBScript 函数参考手册 定义和用法Mid 函数可从字符串中返回指定数目的字符。 提示:请使用 Len 函数来确定字符串中的字符数目。 语法 Mid(string,start[,length]) 参数 描述 string 必需的。从其中返回字符的字符串表达式。如果字符串包含 Null,则返回 Null。 start 必需的。规定起始位置。如果设置为大于字符串中的字符数目,则返回空字符串("")。 length 可选的。要返回的字符数目。如果省略或 length 超过文本的字符数(包括 start 处的字符),将返回字符串中从 start 到字符串结束的所有字符。 实例 例子 1 dim txt txt="This is a beautiful day!" document.write(Mid(txt,1,1))输出: T 例子 2 dim txt txt="This is a beautiful day!" document.write(Mid(txt,1,11))输出: This is a b 例子 3 dim txt txt="This is a beautiful day!" document.write(Mid(txt,1))输出: This is a beautiful day! 例子 4 dim txt txt="This is a beautiful day!" document.write(Mid(txt,10))输出: beautiful day!VBScript 函数参考手册 VBScript 参考手册 VBScript 实例W3School 简体中文版提供的内容仅用于培训和测试,不保证内容的正确性。通过使用本站内容随之而来的风险与本站无关。版权所有,保留一切权利。 关于 W3School 帮助 W3School 使用条款 隐私条款 技术支持:赢科 蒙ICP备06004630号 |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |