1、includes() 方法:
if (array.includes(element)) {
// 存在
} else {
// 不存在
}
2、indexOf() 方法:
if (array.indexOf(element) !== -1) {
// 存在
} else {
// 不存在
}
3、find() 方法:
if (array.find(item => item === element)) {
// 存在
} else {
// 不存在
}