When readAsText()
function is completed the result is stored in .result
How do I see if the content of the file read are correct in .result
?
fr = new FileReader();
fr.readAsText(file);
var x = fr.result;
console.log(x); //does not display anything on console
Now how do I display the .result
object to verify the the content?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…