歡迎您光臨本站 註冊首頁

vue實現簡單圖片上傳

←手機掃碼閱讀     wooen @ 2020-07-01 , reply:0

本文實例為大家分享了vue實現簡單圖片上傳的具體代碼,供大家參考,具體內容如下

功能

  • 實現圖片上傳

  • 顯示進度條

     +{   this.pre=e.loaded/e.total*100   console.log("+++",e)   }   })   .then(res=>{   if(res.data.error==0){   this.pics.push(res.data.pic)   console.log("----",res)   }      })   .catch(err=>{   console.log(err)   })   this.pre=0   },      }   }" _ue_custom_node_="true">

 

 

                                                       

   


[wooen ] vue實現簡單圖片上傳已經有771次圍觀

http://coctec.com/docs/vue-js/show-post-240527.html