第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of GalleryByReactApp. See https://fb.me/react-warning-keys for more information.

http://img1.sycdn.imooc.com//58d2478200013d3112970288.jpgb

請(qǐng)有大神知道這兩條報(bào)錯(cuò)的原因么?

render:?function?()?{
????var?imgFigures?=?[],
????????controllerUnits?=?[];

????imageDatas.forEach(function?(value,?index)?{

????????if?(!this.state.imgsArrangeArr[index])?{
????????????this.state.imgsArrangeArr[index]?=?{
????????????????pos:?{
????????????????????left:?0,
????????????????????top:?0
????????????????}
????????????};
????????}

????????imgFigures.push(<ImgFigure?data={value}?ref={'imgFigure'?+?index}?arrange={this.state.imgsArrangeArr[index]}/>);
????}.bind(this));


????return?(
????????<section?className="stage"?ref="stage">
????????????<section?className="img-sec">
????????????????{imgFigures}
????????????</section>
????????????<nav?className="controller-nav">
????????????????{controllerUnits}
????????????</nav>
????????</section>
????);
}


正在回答

1 回答

給<ImgFigure>標(biāo)簽中加一個(gè)key={index} ?就好了

1 回復(fù) 有任何疑惑可以回復(fù)我~
#1

楓葉咚咚咚

感謝!
2018-01-31 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
React實(shí)戰(zhàn)--打造畫(huà)廊應(yīng)用(上)
  • 參與學(xué)習(xí)       57293    人
  • 解答問(wèn)題       283    個(gè)

顛覆式前端UI開(kāi)發(fā)框架 React,打造圖片畫(huà)廊實(shí)踐案講解

進(jìn)入課程

Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of GalleryByReactApp. See https://fb.me/react-warning-keys for more information.

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)