Array · 判断某元素是否在数组中

182 阅读1分钟

if (this.adminList.includes('Moonsic')) {
  console.log('Moonsic是管理员');
}