摘要: let refList = ['a', 'b', 'c', 'd', 'e']; let choose = ['b', 'd', 'e']; let res = refList.filter( el => { return choose.indexOf(el)>-1 } ) console.log( 阅读全文
posted @ 2022-06-27 20:46 影随风舞 阅读(91) 评论(0) 推荐(0)