且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在jquery中成功调用ajax后,为什么不加载此函数?

更新时间:2023-11-21 11:21:40

为什么在jquery中成功调用ajax后不加载此函数?

Why doesn't this function load after a successful ajax call in jquery?

可以.

从JavaScript错误控制台:

From the JavaScript error console:

XMLHttpRequest无法加载http://papermashup.com/demos/jquery-xml/books.xml.请求的资源上没有'Access-Control-Allow-Origin'头.因此,不允许访问源'http://fiddle.jshell.net'.

XMLHttpRequest cannot load http://papermashup.com/demos/jquery-xml/books.xml. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://fiddle.jshell.net' is therefore not allowed access.

您的请求不成功(至少以Ajax术语来说,严格来说是HTTP术语,但是您请求数据的网站并未授予浏览器许可以提供数据到JSFiddle的JavaScript).

Your request isn't successful (at least in Ajax terms, it is in strictly HTTP terms, but the site you are requesting the data from isn't giving the browser permission to give the data to the JavaScript from JSFiddle).