判断js中数组是否包含某值

 

可以用数组的includes函数判断数组中是否存在某个值。

 

 

 

posted @ 2019-11-22 18:35  君主-bye  阅读(191)  评论(0)    收藏  举报