查找数组中元素所在index

const index = state.finStrategyList.findIndex(v => v.value === plan.value)
            		if(index >= 0){
            			state.finStrategyList.splice(index,1)
            		}

猜你喜欢

转载自blog.csdn.net/weixin_43837268/article/details/89598700