Load xml file in a directory using javascript

后端 未结 3 811
一个人的身影
一个人的身影 2020-12-21 16:31

I want to load a xml file using the javascript. I use the following code to load the xml file. The below coding loads the xml file when it is in the same folder.

<         


        
3条回答
  •  情话喂你
    2020-12-21 16:55

    Unfortunately, you can't access local files through AJAX.

    You could try the HTML5 file access API, if you want.

提交回复
热议问题