倒叙数组查找数组对象中是否有该id值,将其去掉

 

倒叙查找,把没找到的删掉

showData=['125','456,'789','152'']

editionSelectVal = [

{

  id:'125',

  name:'你好啊你好啊你好啊'

},{

  id:'1584',

  name:'你好啊你好啊你好啊'

}

]

 

posted on 2020-11-10 00:07  忆小样  阅读(240)  评论(0编辑  收藏  举报