判断数组中有该元素?

方法一:

this.abledNum2.indexOf(num) !== -1

方法二:

this.abledNum2.includes(num)
原文地址:https://www.cnblogs.com/candy-Yao/p/9949699.html