📜  如何在 React js 中上传图片 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:24.788000             🧑  作者: Mango

代码示例1
import FileBase64 from "react-file-base64";
// FileBase64 <- use as component



// onDone return an object of: filename, fileType, base64 data
// use the setState or function of useState to grap the base64 data