Reading a text file using Javascript
问题 The following code should read the content of a text file which is in the current directory upon load, and display it on the html page. I tried modifying by my self. But it does not give an output. Is there an easier way to get this result using another method? or please help figure out what is wrong with this code? <html> <head> <meta http-equiv='Content-type' content='text/html;charset=UTF-8' > <script> function startRead() { // obtain input element through DOM var file = document