How to open a local disk file with JavaScript?

前端 未结 9 2057
[愿得一人]
[愿得一人] 2020-11-22 01:21

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 sec

9条回答
  •  無奈伤痛
    2020-11-22 01:45

    Consider reformatting your file into javascript. Then you can simply load it using good old...

    
    

提交回复
热议问题