ajax:XMLHttpRequest();不能跨域

跨域的方法
1.document.domain="a.com"
2.服务器代理:XMLHttpRequest代理文件
3.script 标签:jsonp
4.location.hash (iframe)
5.window.name (iframe)
6 flash
7 html5 postMessage