綁定onload事件,該事件在數據讀取完成後觸發. 具體代碼(react項目中):. const reader = new window.FileReader();. reader.readAsDataURL(fileObject);.
確定! 回上一頁