大染坊剧情简介

 

写左用旧 没错! 写右就用新 当然,中间是空格 换行就用两个空格

) } changeList(id, val) { var that = this; var list = this.state.list; for(var i = 0; i < list.length; i ) { if(list[i].id == id) { list[i].content = val; break; } } this.setState({ list: list }, () => { that.renderImg(); }) } addList(val) { var list = this.state.list; list.push(val); this.setState({ list: list }) } deleteList(id) { var list = this.state.list; for(var i = 0; i < list.length; i ) { if(list[i].id == id) { list.splice(i, 1); break; } } this.setState({ list: list }) }}export default Detail;