📅  最后修改于: 2022-03-11 14:55:22.496000             🧑  作者: Mango
handleUpload(event) {
const file = event.target.files[0];
const reader = new FileReader();
reader.readAsDataURL(file);
reader.onload = () => {
console.log(reader.result);
};
}