zoukankan      html  css  js  c++  java
  • react map循环的dom,点击让当前数组里的isShow显示false

        changeTitle = (data, index) => {
            const { bottomOrgList } = this.state
            const newList = bottomOrgList.map((v, i) => {
                const newV = {
                    ...v,
                    isShow: i === index ? false : true
                }
                return newV
            })
           
            
            this.setState({
                flagValue: data.orgName,
                editTitle: data.orgName,
                bottomOrgList: newList
            })
            
           
        }
  • 相关阅读:
    nio的学习
    并发编程学习(二)
    并发编程学习(一)
    linux基础知识-常用命令
    linux基础知识-目录结构
    springcloud的config
    zuul学习
    hystrix学习
    feign学习
    ribbon学习
  • 原文地址:https://www.cnblogs.com/whlBooK/p/12067776.html
Copyright © 2011-2022 走看看