最近在阅读有关JavaScript与XML的内容,在w3school中看到了如下案例:
Using the HttpRequest Object
http://www.w3school.com.cn/xml/xml_http.asp
代码如下:
Using the HttpRequest Object
Status:
Status text:
Response:
xml文档链接:
http://www.w3school.com.cn/example/xdom/note.xml
紧接着我把相关代码拷贝到sublime里面,把名为note.xml文档放到localhost根目录下打算试试,但出现如下情况:

并返回:
Failed to load resource: the server responded with a status of 403 (Forbidden)

请问这是什么意思,为何出现上述情况,如何解决?前端初学者,刚接触XML。
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
人生最曼妙的风景,竟是内心的淡定与从容!