Now in C: \ directory has a named test. TXT file and content for the hello world, character set is utf-8, now want to design a web page, there is only one read button, after click can automatically read the documents from the customers, and will be in the form of dialog content told clients,
How to do?
CodePudding user response:
Js can't read the file, the user must select files manually, to readCodePudding user response:
As if only the active reading and web pages in the same directory or subpaths, can not take the initiative to read user a local file, can only be opened to open a window, and then the user to select, passive reading