我想知道 [{title:'ccc'},{title:'abc'},{title:'ddd'}] 中是否有“abc”
let a = 'abc'
let b = [{title:'ccc'},{title:'abc'},{title:'ddd'}]
if there is a in b{
return 'yes'
} else {
return 'no
}
//我该怎么做以及如何判断
白猪掌柜的
慕沐林林
相关分类