Jquery inArray的使用时间:2023-07-24 23:09:38 var typeList=["A","B","C","D"]; if ($.inArray("A", typeList)==-1){ //不存在 }else{ //存在 }