跳至内容
用户工具
登录
站点工具
工具
显示页面
修订记录
反向链接
最近更改
媒体管理器
网站地图
登录
Wiki 格式化语法
最近更改
网站地图
概览
下载
使用教程
帮助文档
插件中心
论坛交流
捐赠EasyASP
您的足迹:
api:easp.list.inter
本页面只读。您可以查看源文件,但不能更改它。如果您觉得这是系统错误,请联系管理员。
===== Easp.List.Inter 方法 ===== 取出在两个数组中都存在的元素(交集) ==== 语法 ==== <sxh asp> Easp.List.Inter Array Easp.List.Inter_ Array </sxh> ==== 参数 ==== |//**Array**//|<wrap lo>Array (数组)</wrap>| |:::| 想进行对比的数组| ==== 返回值 ==== ><wrap em>下列返回值仅 ''Easp.List.Inter_'' 方法</wrap> |//**Object **//|<wrap lo>ASP对象</wrap>| |:::| 返回一个新的Easp的List对象,原List对象不受影响。| ==== 注释 ==== 使用该方法可以取出在两个数组中都存在的元素(交集)\\ ><wrap em>使用 ''Easp.List.Inter_'' 方法可以取出在两个数组中都存在的元素(交集),并组成一个新的List对象,原List的数据不会改变。</wrap> ==== 示例 ==== <sxh asp;title:demo.asp> Set A = Easp.List.New A.Data = Array(1,2,3,4,5) Set B = Easp.List.New B.Data = Array(4,5,6,7,8) Easp.WN "A数组:"&A.ToString Easp.WN "B数组:"&B.ToString Easp.WN "交集的结果:" & B.Inter_(A).ToString A.Inter(B) Easp.WN "交集的结果方法2:"&A.ToString </sxh> 本示例运行结果为:\\ <sxh> AA数组:1,2,3,4,5 B数组:4,5,6,7,8 交集的结果:4,5 交集的结果方法2:4,5 </sxh>
api/easp.list.inter.txt
· 最后更改: 2018/08/15 08:51 (外部编辑)
页面工具
显示页面
修订记录
反向链接
回到顶部