首页 > 技术文章 > some方法过滤
jerrypig 2017-09-28 17:11 原文
// 已经存在该tab时跳过 this.tabs.some(item => item.title === option.title) || this.tabs.push(option)