单项选择题

et set = new Set()set.add(1);set.add(2);set.has(1);以上代码的中的has方法作用正确的是()

A.判断某元素是否存在
B.清除所有元素
C.从set中删除元素
D.向Set中添加元素