Javascript跨域

这几天整理了Javascript跨域的东西,终于比较完整了 附上CORS代码: 1 function createCORSRequest(method, url) { 2 var xhr = new XMLHttpRequest(); 3 if ("withCredentials" in xhr) { 4 xhr.open(method, url, tr
相关文章
相关标签/搜索