是否包含特定元素

列表
Both Server and Client
Both Mobile and PC

检查列表是否包含指定元素

声明

func Contain(target List<object>, value object) bool
go

参数

输入

名称 类型 描述
目标 List 目标列表
Object 要检查的指定元素

返回

类型 描述
Bool 是否包含指定元素