reader.onerror = function(err) {. console.error("Failed to read file", err);. } reader.readAsText(fileInput.files[0]);. }.
確定! 回上一頁