首先摆脱 r=xml PARAM。代替 ajax 代理使用 jsonp 一:
r=xml
ajax
jsonp
proxy : { type : 'jsonp', url : 'http://www.imdbapi.com/?plot=full', // jsonp uses its special method for retrieving data. So no need for the following row //method : 'GET', reader : { type : 'json', // the record param is used when data is nested construction // which is not true in your case //record : 'movie' } }
这是 演示 。
谷歌是你的朋友..
http://aboukone.com/2011/02/04/how-to-post-cross-domain-and-access-the-returned-data-using-extjs/