判断数组中有该元素?

方法一:this

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

方法二:spa

this.abledNum2.includes(num)
相关文章
相关标签/搜索