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

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

antd upload 怎么進行多張上傳

antd upload 怎么進行多張上傳

慕哥9229398 2018-10-11 16:10:40
  onChange: function (files) {        console.log(files)        let imgList = _me.state.imgList;        let status = files.file.status;         let file = files.file;         console.log(file)         let img = [];         if(file instanceof  Array){           if(file.response instanceof Object) {                  file.map((i)=> {                 img.push(i)                    })           }                  console.log(img)         }怎么講files里file里status = ‘done’的文件收集到一起啊?我收集的都是status = ‘uploading’的文件
查看完整描述

1 回答

?
慕無忌1623718

TA貢獻1744條經(jīng)驗 獲得超4個贊

handleChange = (info) => {

if (info.file.status === 'uploading') {

  this.setState({loading: true});

  return;

}

if (info.file.status === 'done') {

  // Get this url from response in real world.

  this.setState({

    avatar: info.file.response.url

  }, () => {

    this.getBase64(info.file.originFileObj, imageUrl => {

      this.setState({

        imageUrl,

        loading: false,

      })

    });

  });

}


查看完整回答
反對 回復 2018-11-25
  • 1 回答
  • 0 關注
  • 3751 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號