I tried to open file with
(我试图用打开文件)
window.open("file:///D:/Hello.txt");
The browser does not allow opening a local file this way, probably for security reasons.
(浏览器不允许以这种方式打开本地文件,可能出于安全原因。)
I want to use the file's data in the client side.(我想在客户端使用文件的数据。)
How can I read local file in JavaScript?(如何在JavaScript中读取本地文件?)
ask by Joval translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…