嘿,伙计们,有没有办法来加载XML数据跨域使用jQuery(=客户端)?
Hey guys, is there a way to load XML Data Cross-Domain with JQuery (= client side)?
$.get('http://otherdomain.com/data.xml', function(xml) { }
以上不工作 - 我必须依靠JSONP,或者是有没有办法来加载XML
The above doesn't work - do I have to rely on JSONP, or is there a way to load XML?
您需要使用的 JSONP
You need to use JSONP.