readAsDataURL (fileInput.files[0]);. 5. . 6. reader.onload = function () {. 7. console.log(reader.result);//base64encoded string.
確定! 回上一頁