Load a file automatically without using a click button

前端 未结 4 1796
走了就别回头了
走了就别回头了 2021-01-16 07:15

I am new to javascript and want to load the file without having to click on the load file button

I am using the following script and I want the text to be loaded aut

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-16 07:55

    You can just call the function on it's own like this:

    loadFileAsText();
    

提交回复
热议问题