Opening a file in local file system in javascript

后端 未结 3 739
攒了一身酷
攒了一身酷 2020-11-30 16:00

I am looking out for a way to open a .xls file which is in temp directory using javascript in IE and Firefox browser. I tried using the javascript as follows,



        
3条回答
  •  春和景丽
    2020-11-30 16:16

    HTML5 permits opening of local files as long as the computer user is selecting the files. You should be able to find more information on the JavaScript API along with sample code on how to use that API here: http://www.html5rocks.com/en/tutorials/file/dndfiles/

提交回复
热议问题