asp

位置:IT落伍者 >> asp >> 浏览文章

asp中join函数实现字符串连接


发布日期:2022年11月15日
 
asp中join函数实现字符串连接

(list[delimiter])

参数 描述

list Required A onedimensional array that contains the substrings to be joined

必选项包含要联接的子字符串一维数组

delimiter Optional The character(s) used to separate the substrings in the returned string Default is the space character

可选项在返回字符串中用于分隔子字符串的字符如果省略将使用空字符 ("") 如果 delimiter 是零长度字符串则在同一列表中列出全部项没有分界符

实例

代码如下 复制代码

dim a()b

a()="Saturday"

a()="Sunday"

a()="Monday"

a()="Tuesday"

a()="Wednesday"

b=Filter(a"n")

documentwrite(join(b))

输出:Sunday Monday Wednesday

实例测试效率

代码如下 复制代码