全称:Cross-Origin Resource Sharing
在ST的 文档中是这么写的
A relatively new capability of modern browsers is called CORS, which stands for Cross-Origin Resource Sharing. This allows you to send requests to other domains without the usual security restrictions enforced by the browser. Sencha Touch 2 has support for CORS, though you'll probably need to do a little setup on your web server to enable it. If you're not familiar with what you need to do on your web server to enable CORS, a quick google search should give you plenty of answers.
Assuming your server is set up though, sending a CORS request is easy:
Ext.Ajax.request({ url: 'http://www.somedomain.com/some/awesome/url.php', withCredentials: true, useDefaultXhrHeader: false });
Form Uploads
The final thing we'll cover is uploading forms. This is also really easy:
Ext.Ajax.request({ url: 'myUrl', form: 'myFormId', callback: function(options, success, response) { if (success) { Ext.Msg.alert('Success', 'We got your form submission'); } else { Ext.Msg.alert('Fail', 'Hmm, that did not work'); } } });
This finds a